home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / security / xinetd / sio.1.5.6.tar < prev    next >
Tape Archive  |  1993-06-28  |  160.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: Tape Archive (archive/tar).

You can browse this item here: sio.1.5.6.tar

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Tape Archive (archive/tar) magic Supported
100% file tar archive default
99% file tar archive (V7), file ./, mode 700 , uid 23421 , gid 0 , size 0 , seconds 5311564500 default
98% file data default
100% TrID Sybase iAnywhere database files default (weak)
100% lsar Tar default
100% gt2 TAR Archiv gefunden (Auflistung ist deaktiviert) default
100% disktype Pre-POSIX tar archive default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 2e 2f 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |./......|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 00 00 00 00 20 20 20 37 | 30 30 20 00 20 32 33 34 |.... 7|00 . 234|
|00000070| 32 31 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 |21 . | 0 . |
|00000080| 20 20 20 20 20 20 30 20 | 20 35 33 31 31 35 36 34 | 0 | 5311564|
|00000090| 35 30 30 20 20 20 34 31 | 35 36 00 20 00 00 00 00 |500 41|56. ....|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 2e 2f 43 6f 6e 66 69 67 | 2f 00 00 00 00 00 00 00 |./Config|/.......|
|00000210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 20 20 20 37 | 30 30 20 00 20 32 33 34 |.... 7|00 . 234|
|00000270| 32 31 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 |21 . | 0 . |
|00000280| 20 20 20 20 20 20 30 20 | 20 35 33 31 31 35 36 34 | 0 | 5311564|
|00000290| 35 30 31 20 20 20 35 33 | 36 34 00 20 00 00 00 00 |501 53|64. ....|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000400| 2e 2f 43 6f 6e 66 69 67 | 2f 4d 61 6b 65 66 69 6c |./Config|/Makefil|
|00000410| 65 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |e.......|........|
|00000420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000460| 00 00 00 00 20 20 20 36 | 30 30 20 00 20 32 33 34 |.... 6|00 . 234|
|00000470| 32 31 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 |21 . | 0 . |
|00000480| 20 20 20 20 35 32 31 20 | 20 35 33 31 31 35 36 34 | 521 | 5311564|
|00000490| 35 30 30 20 20 20 37 30 | 37 30 00 20 00 00 00 00 |500 70|70. ....|
|000004a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000600| 23 20 28 63 29 20 43 6f | 70 79 72 69 67 68 74 20 |# (c) Co|pyright |
|00000610| 31 39 39 32 20 62 79 20 | 50 61 6e 61 67 69 6f 74 |1992 by |Panagiot|
|00000620| 69 73 20 54 73 69 72 69 | 67 6f 74 69 73 0a 23 20 |is Tsiri|gotis.# |
|00000630| 41 6c 6c 20 72 69 67 68 | 74 73 20 72 65 73 65 72 |All righ|ts reser|
|00000640| 76 65 64 2e 20 20 54 68 | 65 20 66 69 6c 65 20 6e |ved. Th|e file n|
|00000650| 61 6d 65 64 20 43 4f 50 | 59 52 49 47 48 54 20 73 |amed COP|YRIGHT s|
|00000660| 70 65 63 69 66 69 65 73 | 20 74 68 65 20 74 65 72 |pecifies| the ter|
|00000670| 6d 73 20 0a 23 20 61 6e | 64 20 63 6f 6e 64 69 74 |ms .# an|d condit|
|00000680| 69 6f 6e 73 20 66 6f 72 | 20 72 65 64 69 73 74 72 |ions for| redistr|
|00000690| 69 62 75 74 69 6f 6e 2e | 0a 0a 0a 43 4f 4e 46 49 |ibution.|...CONFI|
|000006a0| 47 5f 46 49 4c 45 53 3d | 73 75 6e 6f 73 34 2e 31 |G_FILES=|sunos4.1|
|000006b0| 2d 63 6f 6e 66 69 67 2e | 68 20 75 6c 74 72 69 78 |-config.|h ultrix|
|000006c0| 34 2e 31 2d 63 6f 6e 66 | 69 67 2e 68 20 75 6d 69 |4.1-conf|ig.h umi|
|000006d0| 70 73 62 73 64 2d 63 6f | 6e 66 69 67 2e 68 20 73 |psbsd-co|nfig.h s|
|000006e0| 79 73 76 2d 63 6f 6e 66 | 69 67 2e 68 20 62 73 64 |ysv-conf|ig.h bsd|
|000006f0| 34 33 2d 63 6f 6e 66 69 | 67 2e 68 0a 0a 63 68 65 |43-confi|g.h..che|
|00000700| 63 6b 6f 75 74 3a 20 24 | 28 43 4f 4e 46 49 47 5f |ckout: $|(CONFIG_|
|00000710| 46 49 4c 45 53 29 0a 0a | 24 28 43 4f 4e 46 49 47 |FILES)..|$(CONFIG|
|00000720| 5f 46 49 4c 45 53 29 3a | 0a 09 2d 63 6f 20 24 40 |_FILES):|..-co $@|
|00000730| 0a 0a 64 69 73 74 3a 0a | 09 2d 63 6f 20 2d 71 20 |..dist:.|.-co -q |
|00000740| 24 28 43 4f 4e 46 49 47 | 5f 46 49 4c 45 53 29 0a |$(CONFIG|_FILES).|
|00000750| 0a 14 00 06 52 45 41 44 | 4d 45 00 00 00 00 00 00 |....READ|ME......|
|00000760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000800| 2e 2f 43 6f 6e 66 69 67 | 2f 73 75 6e 6f 73 34 2e |./Config|/sunos4.|
|00000810| 31 2d 63 6f 6e 66 69 67 | 2e 68 00 00 00 00 00 00 |1-config|.h......|
|00000820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000860| 00 00 00 00 20 20 20 36 | 30 30 20 00 20 32 33 34 |.... 6|00 . 234|
|00000870| 32 31 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 |21 . | 0 . |
|00000880| 20 20 20 35 33 36 34 20 | 20 35 33 31 31 35 36 34 | 5364 | 5311564|
|00000890| 35 30 30 20 20 31 30 34 | 37 30 00 20 00 00 00 00 |500 104|70. ....|
|000008a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000900| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a00| 2f 2a 0a 20 2a 20 28 63 | 29 20 43 6f 70 79 72 69 |/*. * (c|) Copyri|
|00000a10| 67 68 74 20 31 39 39 32 | 20 62 79 20 50 61 6e 61 |ght 1992| by Pana|
|00000a20| 67 69 6f 74 69 73 20 54 | 73 69 72 69 67 6f 74 69 |giotis T|sirigoti|
|00000a30| 73 0a 20 2a 20 41 6c 6c | 20 72 69 67 68 74 73 20 |s. * All| rights |
|00000a40| 72 65 73 65 72 76 65 64 | 2e 20 20 54 68 65 20 66 |reserved|. The f|
|00000a50| 69 6c 65 20 6e 61 6d 65 | 64 20 43 4f 50 59 52 49 |ile name|d COPYRI|
|00000a60| 47 48 54 20 73 70 65 63 | 69 66 69 65 73 20 74 68 |GHT spec|ifies th|
|00000a70| 65 20 74 65 72 6d 73 20 | 0a 20 2a 20 61 6e 64 20 |e terms |. * and |
|00000a80| 63 6f 6e 64 69 74 69 6f | 6e 73 20 66 6f 72 20 72 |conditio|ns for r|
|00000a90| 65 64 69 73 74 72 69 62 | 75 74 69 6f 6e 2e 0a 20 |edistrib|ution.. |
|00000aa0| 2a 2f 0a 0a 0a 2f 2a 0a | 20 2a 20 24 49 64 3a 20 |*/.../*.| * $Id: |
|00000ab0| 73 75 6e 6f 73 34 2e 31 | 2d 63 6f 6e 66 69 67 2e |sunos4.1|-config.|
|00000ac0| 68 2c 76 20 37 2e 34 20 | 31 39 39 32 2f 30 36 2f |h,v 7.4 |1992/06/|
|00000ad0| 32 32 20 32 30 3a 33 34 | 3a 34 32 20 70 61 6e 6f |22 20:34|:42 pano|
|00000ae0| 73 20 45 78 70 20 24 0a | 20 2a 2f 0a 0a 2f 2a 0a |s Exp $.| */../*.|
|00000af0| 20 2a 20 4e 4f 54 45 3a | 20 41 4c 4c 20 42 49 4e | * NOTE:| ALL BIN|
|00000b00| 41 52 59 20 46 4c 41 47 | 53 20 4d 55 53 54 20 42 |ARY FLAG|S MUST B|
|00000b10| 45 20 45 49 54 48 45 52 | 20 64 65 66 69 6e 65 27 |E EITHER| define'|
|00000b20| 64 20 4f 52 20 75 6e 64 | 65 66 27 65 64 2e 0a 20 |d OR und|ef'ed.. |
|00000b30| 2a 20 20 20 09 09 44 4f | 20 4e 4f 54 20 53 4b 49 |* ..DO| NOT SKI|
|00000b40| 50 20 46 4c 41 47 53 3b | 20 75 6e 64 65 66 20 54 |P FLAGS;| undef T|
|00000b50| 48 45 4d 0a 20 2a 2f 0a | 0a 0a 2f 2a 2a 2a 2a 2a |HEM. */.|../*****|
|00000b60| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000b70| 2a 2a 2a 20 4d 45 4d 4f | 52 59 20 4d 41 50 50 49 |*** MEMO|RY MAPPI|
|00000b80| 4e 47 20 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |NG *****|********|
|00000b90| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2f |********|*******/|
|00000ba0| 0a 0a 2f 2a 0a 20 2a 20 | 45 69 74 68 65 72 20 64 |../*. * |Either d|
|00000bb0| 65 66 69 6e 65 20 6f 72 | 20 75 6e 64 65 66 20 4d |efine or| undef M|
|00000bc0| 45 4d 4f 52 59 5f 4d 41 | 50 0a 20 2a 20 49 66 20 |EMORY_MA|P. * If |
|00000bd0| 79 6f 75 20 64 65 66 69 | 6e 65 20 69 74 2c 20 79 |you defi|ne it, y|
|00000be0| 6f 75 20 6d 75 73 74 20 | 61 6c 73 6f 20 64 65 66 |ou must |also def|
|00000bf0| 69 6e 65 20 74 68 65 20 | 6d 65 6d 6f 72 79 20 6d |ine the |memory m|
|00000c00| 61 70 70 69 6e 67 20 69 | 6e 74 65 72 66 61 63 65 |apping i|nterface|
|00000c10| 0a 20 2a 20 66 75 6e 63 | 74 69 6f 6e 73 3a 20 53 |. * func|tions: S|
|00000c20| 49 4f 5f 4d 4d 41 50 2c | 20 53 49 4f 5f 4d 55 4e |IO_MMAP,| SIO_MUN|
|00000c30| 4d 41 50 2c 20 53 49 4f | 5f 4d 4e 45 45 44 0a 20 |MAP, SIO|_MNEED. |
|00000c40| 2a 20 53 49 4f 5f 4d 4e | 45 45 44 20 69 73 20 6e |* SIO_MN|EED is n|
|00000c50| 6f 74 20 6e 65 63 65 73 | 73 61 72 79 3b 20 69 66 |ot neces|sary; if|
|00000c60| 20 79 6f 75 72 20 4f 53 | 20 64 6f 65 73 20 6e 6f | your OS| does no|
|00000c70| 74 20 73 75 70 70 6f 72 | 74 20 69 74 0a 20 2a 20 |t suppor|t it. * |
|00000c80| 64 65 66 69 6e 65 20 69 | 74 20 74 6f 20 6e 6f 74 |define i|t to not|
|00000c90| 68 69 6e 67 2e 0a 20 2a | 2f 20 0a 23 64 65 66 69 |hing.. *|/ .#defi|
|00000ca0| 6e 65 20 4d 45 4d 4f 52 | 59 5f 4d 41 50 0a 23 69 |ne MEMOR|Y_MAP.#i|
|00000cb0| 6e 63 6c 75 64 65 20 3c | 73 79 73 2f 74 79 70 65 |nclude <|sys/type|
|00000cc0| 73 2e 68 3e 0a 23 69 6e | 63 6c 75 64 65 20 3c 73 |s.h>.#in|clude <s|
|00000cd0| 79 73 2f 6d 6d 61 6e 2e | 68 3e 0a 0a 23 64 65 66 |ys/mman.|h>..#def|
|00000ce0| 69 6e 65 20 53 49 4f 5f | 4d 4d 41 50 28 20 61 64 |ine SIO_|MMAP( ad|
|00000cf0| 64 72 2c 20 6c 65 6e 2c | 20 66 64 2c 20 6f 66 66 |dr, len,| fd, off|
|00000d00| 20 29 09 09 09 09 09 09 | 09 09 09 09 09 09 5c 0a | )......|......\.|
|00000d10| 09 09 09 6d 6d 61 70 28 | 20 61 64 64 72 2c 20 6c |...mmap(| addr, l|
|00000d20| 65 6e 2c 20 50 52 4f 54 | 5f 52 45 41 44 2c 09 09 |en, PROT|_READ,..|
|00000d30| 09 09 09 09 09 09 09 09 | 09 09 5c 0a 09 09 09 09 |........|..\.....|
|00000d40| 28 20 61 64 64 72 20 3d | 3d 20 30 20 29 20 3f 20 |( addr =|= 0 ) ? |
|00000d50| 4d 41 50 5f 50 52 49 56 | 41 54 45 20 3a 20 4d 41 |MAP_PRIV|ATE : MA|
|00000d60| 50 5f 50 52 49 56 41 54 | 45 20 2b 20 4d 41 50 5f |P_PRIVAT|E + MAP_|
|00000d70| 46 49 58 45 44 2c 09 09 | 5c 0a 09 09 09 09 09 66 |FIXED,..|\......f|
|00000d80| 64 2c 20 6f 66 66 20 29 | 0a 23 64 65 66 69 6e 65 |d, off )|.#define|
|00000d90| 20 53 49 4f 5f 4d 55 4e | 4d 41 50 28 20 61 64 64 | SIO_MUN|MAP( add|
|00000da0| 72 2c 20 6c 65 6e 20 29 | 09 6d 75 6e 6d 61 70 28 |r, len )|.munmap(|
|00000db0| 20 61 64 64 72 2c 20 6c | 65 6e 20 29 0a 23 64 65 | addr, l|en ).#de|
|00000dc0| 66 69 6e 65 20 53 49 4f | 5f 4d 4e 45 45 44 28 20 |fine SIO|_MNEED( |
|00000dd0| 61 64 64 72 2c 20 6c 65 | 6e 20 29 09 09 28 76 6f |addr, le|n )..(vo|
|00000de0| 69 64 29 20 6d 61 64 76 | 69 73 65 28 20 61 64 64 |id) madv|ise( add|
|00000df0| 72 2c 20 6c 65 6e 2c 20 | 4d 41 44 56 5f 57 49 4c |r, len, |MADV_WIL|
|00000e00| 4c 4e 45 45 44 20 29 20 | 0a 0a 0a 2f 2a 2a 2a 2a |LNEED ) |.../****|
|00000e10| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000e20| 2a 2a 2a 2a 20 46 49 4e | 41 4c 49 5a 41 54 49 4f |**** FIN|ALIZATIO|
|00000e30| 4e 20 43 4f 44 45 20 2a | 2a 2a 2a 2a 2a 2a 2a 2a |N CODE *|********|
|00000e40| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000e50| 2a 2a 2a 2f 0a 0a 2f 2a | 0a 20 2a 20 45 69 74 68 |***/../*|. * Eith|
|00000e60| 65 72 20 64 65 66 69 6e | 65 20 6f 72 20 75 6e 64 |er defin|e or und|
|00000e70| 65 66 20 48 41 53 5f 46 | 49 4e 41 4c 49 5a 41 54 |ef HAS_F|INALIZAT|
|00000e80| 49 4f 4e 0a 20 2a 20 49 | 66 20 79 6f 75 20 64 65 |ION. * I|f you de|
|00000e90| 66 69 6e 65 20 69 74 2c | 20 79 6f 75 20 6d 75 73 |fine it,| you mus|
|00000ea0| 74 20 64 65 66 69 6e 65 | 20 74 68 65 20 6d 61 63 |t define| the mac|
|00000eb0| 72 6f 73 20 53 49 4f 5f | 46 49 4e 41 4c 49 5a 45 |ros SIO_|FINALIZE|
|00000ec0| 20 0a 20 2a 20 61 6e 64 | 20 53 49 4f 5f 44 45 46 | . * and| SIO_DEF|
|00000ed0| 49 4e 45 5f 46 49 4e 0a | 20 2a 20 53 49 4f 5f 46 |INE_FIN.| * SIO_F|
|00000ee0| 49 4e 41 4c 49 5a 45 20 | 68 61 73 20 61 20 66 75 |INALIZE |has a fu|
|00000ef0| 6e 63 74 69 6f 6e 20 61 | 73 20 61 6e 20 61 72 67 |nction a|s an arg|
|00000f00| 75 6d 65 6e 74 20 61 6e | 64 20 69 74 73 20 76 61 |ument an|d its va|
|00000f10| 6c 75 65 0a 20 2a 20 69 | 73 20 61 6e 20 65 78 70 |lue. * i|s an exp|
|00000f20| 72 65 73 73 69 6f 6e 20 | 77 68 6f 73 65 20 76 61 |ression |whose va|
|00000f30| 6c 75 65 20 69 73 20 54 | 52 55 45 20 69 66 20 74 |lue is T|RUE if t|
|00000f40| 68 65 20 66 69 6e 61 6c | 69 7a 61 74 69 6f 6e 20 |he final|ization |
|00000f50| 66 75 6e 63 74 69 6f 6e | 0a 20 2a 20 77 61 73 20 |function|. * was |
|00000f60| 73 75 63 63 65 73 73 66 | 75 6c 6c 79 20 69 6e 73 |successf|ully ins|
|00000f70| 74 61 6c 6c 65 64 0a 20 | 2a 20 53 49 4f 5f 44 45 |talled. |* SIO_DE|
|00000f80| 46 49 4e 45 5f 46 49 4e | 20 68 61 73 20 61 20 66 |FINE_FIN| has a f|
|00000f90| 75 6e 63 74 69 6f 6e 20 | 61 73 20 61 6e 20 61 72 |unction |as an ar|
|00000fa0| 67 75 6d 65 6e 74 20 61 | 6e 64 20 63 72 65 61 74 |gument a|nd creat|
|00000fb0| 65 64 20 61 6e 0a 20 2a | 20 61 70 70 72 6f 70 72 |ed an. *| appropr|
|00000fc0| 69 61 74 65 20 66 75 6e | 63 74 69 6f 6e 20 64 65 |iate fun|ction de|
|00000fd0| 66 69 6e 69 74 69 6f 6e | 2e 0a 20 2a 2f 0a 23 64 |finition|.. */.#d|
|00000fe0| 65 66 69 6e 65 20 48 41 | 53 5f 46 49 4e 41 4c 49 |efine HA|S_FINALI|
|00000ff0| 5a 41 54 49 4f 4e 5f 46 | 55 4e 43 54 49 4f 4e 0a |ZATION_F|UNCTION.|
|00001000| 23 64 65 66 69 6e 65 20 | 53 49 4f 5f 46 49 4e 41 |#define |SIO_FINA|
|00001010| 4c 49 5a 45 28 20 66 75 | 6e 63 20 29 09 09 09 28 |LIZE( fu|nc )...(|
|00001020| 20 6f 6e 5f 65 78 69 74 | 28 20 66 75 6e 63 2c 20 | on_exit|( func, |
|00001030| 28 63 61 64 64 72 5f 74 | 29 20 30 20 29 20 3d 3d |(caddr_t|) 0 ) ==|
|00001040| 20 30 20 29 0a 23 64 65 | 66 69 6e 65 20 53 49 4f | 0 ).#de|fine SIO|
|00001050| 5f 44 45 46 49 4e 45 5f | 46 49 4e 28 20 66 75 6e |_DEFINE_|FIN( fun|
|00001060| 63 20 29 09 09 73 74 61 | 74 69 63 20 76 6f 69 64 |c )..sta|tic void|
|00001070| 20 66 75 6e 63 20 28 20 | 65 78 69 74 5f 73 74 61 | func ( |exit_sta|
|00001080| 74 75 73 2c 20 61 72 67 | 20 29 20 09 5c 0a 09 09 |tus, arg| ) .\...|
|00001090| 09 09 09 09 09 09 09 09 | 09 09 09 09 69 6e 74 20 |........|....int |
|000010a0| 65 78 69 74 5f 73 74 61 | 74 75 73 20 3b 09 09 09 |exit_sta|tus ;...|
|000010b0| 09 09 09 5c 0a 09 09 09 | 09 09 09 09 09 09 09 09 |...\....|........|
|000010c0| 09 09 09 63 61 64 64 72 | 5f 74 20 61 72 67 20 3b |...caddr|_t arg ;|
|000010d0| 0a 0a 0a 2f 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |.../****|********|
|000010e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 20 47 45 4e |********|**** GEN|
|000010f0| 45 52 41 4c 20 43 4f 4e | 53 54 41 4e 54 53 20 2a |ERAL CON|STANTS *|
|00001100| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001110| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2f 0a 0a 2f 2a |********|***/../*|
|00001120| 0a 20 2a 20 44 65 66 69 | 6e 65 20 61 74 20 6d 6f |. * Defi|ne at mo|
|00001130| 73 74 20 31 20 6f 66 20 | 74 68 65 20 66 6f 6c 6c |st 1 of |the foll|
|00001140| 6f 77 69 6e 67 20 74 77 | 6f 20 66 6c 61 67 73 0a |owing tw|o flags.|
|00001150| 20 2a 2f 0a 23 64 65 66 | 69 6e 65 20 48 41 53 5f | */.#def|ine HAS_|
|00001160| 4d 45 4d 4f 50 53 0a 23 | 75 6e 64 65 66 20 48 41 |MEMOPS.#|undef HA|
|00001170| 53 5f 42 43 4f 50 59 0a | 0a 2f 2a 0a 20 2a 20 44 |S_BCOPY.|./*. * D|
|00001180| 65 66 69 6e 65 20 48 41 | 53 5f 49 53 41 54 54 59 |efine HA|S_ISATTY|
|00001190| 20 69 66 20 74 68 65 20 | 66 75 6e 63 74 69 6f 6e | if the |function|
|000011a0| 20 69 73 61 74 74 79 28 | 20 66 64 20 29 20 65 78 | isatty(| fd ) ex|
|000011b0| 69 73 74 73 20 69 6e 20 | 74 68 65 20 43 20 6c 69 |ists in |the C li|
|000011c0| 62 72 61 72 79 0a 20 2a | 2f 0a 23 64 65 66 69 6e |brary. *|/.#defin|
|000011d0| 65 20 48 41 53 5f 49 53 | 41 54 54 59 0a 0a 2f 2a |e HAS_IS|ATTY../*|
|000011e0| 0a 20 2a 20 4e 5f 53 49 | 4f 5f 44 45 53 43 52 49 |. * N_SI|O_DESCRI|
|000011f0| 50 54 4f 52 53 20 69 73 | 20 74 68 65 20 6d 61 78 |PTORS is| the max|
|00001200| 69 6d 75 6d 20 6e 75 6d | 62 65 72 20 6f 66 20 66 |imum num|ber of f|
|00001210| 69 6c 65 20 64 65 73 63 | 72 69 70 74 6f 72 73 0a |ile desc|riptors.|
|00001220| 20 2a 20 73 75 70 70 6f | 72 74 65 64 20 62 79 20 | * suppo|rted by |
|00001230| 74 68 65 20 4f 53 0a 20 | 2a 2f 0a 23 69 6e 63 6c |the OS. |*/.#incl|
|00001240| 75 64 65 20 3c 73 79 73 | 2f 70 61 72 61 6d 2e 68 |ude <sys|/param.h|
|00001250| 3e 0a 23 64 65 66 69 6e | 65 20 4e 5f 53 49 4f 5f |>.#defin|e N_SIO_|
|00001260| 44 45 53 43 52 49 50 54 | 4f 52 53 09 09 09 4e 4f |DESCRIPT|ORS...NO|
|00001270| 46 49 4c 45 0a 0a 2f 2a | 2a 2a 2a 2a 2a 2a 2a 2a |FILE../*|********|
|00001280| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 20 |********|******* |
|00001290| 53 50 52 49 4e 54 20 43 | 4f 4e 53 54 41 4e 54 53 |SPRINT C|ONSTANTS|
|000012a0| 20 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a | *******|********|
|000012b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2f 0a 0a |********|*****/..|
|000012c0| 2f 2a 0a 20 2a 20 53 4d | 41 4c 4c 45 53 54 5f 49 |/*. * SM|ALLEST_I|
|000012d0| 4e 54 3a 20 20 20 20 20 | 73 6d 61 6c 6c 65 73 74 |NT: |smallest|
|000012e0| 20 69 6e 74 65 67 65 72 | 20 74 68 65 20 6d 61 63 | integer| the mac|
|000012f0| 68 69 6e 65 20 63 61 6e | 20 72 65 70 72 65 73 65 |hine can| represe|
|00001300| 6e 74 0a 20 2a 20 53 5f | 53 4d 41 4c 4c 45 53 54 |nt. * S_|SMALLEST|
|00001310| 5f 49 4e 54 3a 20 20 20 | 74 68 65 20 73 6d 61 6c |_INT: |the smal|
|00001320| 6c 65 73 74 20 69 6e 74 | 65 67 65 72 20 61 73 20 |lest int|eger as |
|00001330| 61 20 73 74 72 69 6e 67 | 0a 20 2a 20 53 5f 53 4d |a string|. * S_SM|
|00001340| 41 4c 4c 45 53 54 5f 49 | 4e 54 5f 4c 45 4e 3a 20 |ALLEST_I|NT_LEN: |
|00001350| 6c 65 6e 67 74 68 20 6f | 66 20 73 74 72 69 6e 67 |length o|f string|
|00001360| 20 63 6f 6e 74 61 69 6e | 69 6e 67 20 73 6d 61 6c | contain|ing smal|
|00001370| 6c 65 73 74 20 69 6e 74 | 65 67 65 72 0a 20 2a 0a |lest int|eger. *.|
|00001380| 20 2a 20 54 68 65 73 65 | 20 63 6f 6e 73 74 61 6e | * These| constan|
|00001390| 74 73 20 64 65 70 65 6e | 64 20 6f 6e 20 74 68 65 |ts depen|d on the|
|000013a0| 20 77 6f 72 64 20 73 69 | 7a 65 20 6f 66 20 74 68 | word si|ze of th|
|000013b0| 65 20 43 50 55 20 61 6e | 64 20 74 68 65 0a 20 2a |e CPU an|d the. *|
|000013c0| 20 74 79 70 65 20 6f 66 | 20 61 72 69 74 68 6d 65 | type of| arithme|
|000013d0| 74 69 63 20 28 31 27 73 | 20 6f 72 20 32 27 73 20 |tic (1's| or 2's |
|000013e0| 63 6f 6d 70 6c 65 6d 65 | 6e 74 29 2e 0a 20 2a 2f |compleme|nt).. */|
|000013f0| 0a 0a 23 64 65 66 69 6e | 65 20 53 4d 41 4c 4c 45 |..#defin|e SMALLE|
|00001400| 53 54 5f 49 4e 54 20 20 | 20 20 20 20 20 20 20 20 |ST_INT | |
|00001410| 20 20 20 20 20 20 28 2d | 32 31 34 37 34 38 33 36 | (-|21474836|
|00001420| 34 38 29 0a 23 64 65 66 | 69 6e 65 20 53 5f 53 4d |48).#def|ine S_SM|
|00001430| 41 4c 4c 45 53 54 5f 49 | 4e 54 20 20 20 20 20 20 |ALLEST_I|NT |
|00001440| 20 20 20 20 20 20 20 20 | 22 32 31 34 37 34 38 33 | |"2147483|
|00001450| 36 34 38 22 20 20 20 20 | 20 20 2f 2a 20 6e 6f 74 |648" | /* not|
|00001460| 65 3a 20 6e 6f 20 27 2d | 27 20 73 69 67 6e 20 2a |e: no '-|' sign *|
|00001470| 2f 0a 23 64 65 66 69 6e | 65 20 53 5f 53 4d 41 4c |/.#defin|e S_SMAL|
|00001480| 4c 45 53 54 5f 49 4e 54 | 5f 4c 45 4e 20 20 20 20 |LEST_INT|_LEN |
|00001490| 20 20 20 20 20 20 31 30 | 0a 0a 2f 2a 0a 20 2a 20 | 10|../*. * |
|000014a0| 44 65 66 69 6e 65 20 4c | 4f 4e 47 5f 49 53 5f 42 |Define L|ONG_IS_B|
|000014b0| 49 47 47 45 52 20 69 73 | 20 73 69 7a 65 6f 66 28 |IGGER is| sizeof(|
|000014c0| 20 6c 6f 6e 67 20 29 20 | 21 3d 20 73 69 7a 65 6f | long ) |!= sizeo|
|000014d0| 66 28 20 69 6e 74 20 29 | 0a 20 2a 2f 0a 23 75 6e |f( int )|. */.#un|
|000014e0| 64 65 66 20 4c 4f 4e 47 | 5f 49 53 5f 42 49 47 47 |def LONG|_IS_BIGG|
|000014f0| 45 52 0a 0a 00 00 00 00 | 00 00 00 00 00 00 00 00 |ER......|........|
|00001500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001560| 00 00 30 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..0.....|........|
|00001570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001600| 2e 2f 43 6f 6e 66 69 67 | 2f 75 6c 74 72 69 78 34 |./Config|/ultrix4|
|00001610| 2e 31 2d 63 6f 6e 66 69 | 67 2e 68 00 00 00 00 00 |.1-confi|g.h.....|
|00001620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001660| 00 00 00 00 20 20 20 36 | 30 30 20 00 20 32 33 34 |.... 6|00 . 234|
|00001670| 32 31 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 |21 . | 0 . |
|00001680| 20 20 20 34 34 36 31 20 | 20 35 33 31 31 35 36 34 | 4461 | 5311564|
|00001690| 35 30 31 20 20 31 30 36 | 34 36 00 20 00 00 00 00 |501 106|46. ....|
|000016a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001700| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001800| 2f 2a 0a 20 2a 20 28 63 | 29 20 43 6f 70 79 72 69 |/*. * (c|) Copyri|
|00001810| 67 68 74 20 31 39 39 32 | 20 62 79 20 50 61 6e 61 |ght 1992| by Pana|
|00001820| 67 69 6f 74 69 73 20 54 | 73 69 72 69 67 6f 74 69 |giotis T|sirigoti|
|00001830| 73 0a 20 2a 20 41 6c 6c | 20 72 69 67 68 74 73 20 |s. * All| rights |
|00001840| 72 65 73 65 72 76 65 64 | 2e 20 20 54 68 65 20 66 |reserved|. The f|
|00001850| 69 6c 65 20 6e 61 6d 65 | 64 20 43 4f 50 59 52 49 |ile name|d COPYRI|
|00001860| 47 48 54 20 73 70 65 63 | 69 66 69 65 73 20 74 68 |GHT spec|ifies th|
|00001870| 65 20 74 65 72 6d 73 20 | 0a 20 2a 20 61 6e 64 20 |e terms |. * and |
|00001880| 63 6f 6e 64 69 74 69 6f | 6e 73 20 66 6f 72 20 72 |conditio|ns for r|
|00001890| 65 64 69 73 74 72 69 62 | 75 74 69 6f 6e 2e 0a 20 |edistrib|ution.. |
|000018a0| 2a 2f 0a 0a 2f 2a 0a 20 | 2a 20 24 49 64 3a 20 75 |*/../*. |* $Id: u|
|000018b0| 6c 74 72 69 78 34 2e 31 | 2d 63 6f 6e 66 69 67 2e |ltrix4.1|-config.|
|000018c0| 68 2c 76 20 37 2e 33 20 | 31 39 39 32 2f 30 36 2f |h,v 7.3 |1992/06/|
|000018d0| 32 32 20 32 30 3a 32 33 | 3a 31 38 20 70 61 6e 6f |22 20:23|:18 pano|
|000018e0| 73 20 45 78 70 20 24 0a | 20 2a 2f 0a 0a 2f 2a 0a |s Exp $.| */../*.|
|000018f0| 20 2a 20 4e 4f 54 45 3a | 20 41 4c 4c 20 42 49 4e | * NOTE:| ALL BIN|
|00001900| 41 52 59 20 46 4c 41 47 | 53 20 4d 55 53 54 20 42 |ARY FLAG|S MUST B|
|00001910| 45 20 45 49 54 48 45 52 | 20 64 65 66 69 6e 65 27 |E EITHER| define'|
|00001920| 64 20 4f 52 20 75 6e 64 | 65 66 27 65 64 2e 0a 20 |d OR und|ef'ed.. |
|00001930| 2a 20 20 20 09 09 44 4f | 20 4e 4f 54 20 53 4b 49 |* ..DO| NOT SKI|
|00001940| 50 20 46 4c 41 47 53 3b | 20 75 6e 64 65 66 20 54 |P FLAGS;| undef T|
|00001950| 48 45 4d 0a 20 2a 2f 0a | 0a 0a 2f 2a 2a 2a 2a 2a |HEM. */.|../*****|
|00001960| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001970| 2a 2a 2a 20 4d 45 4d 4f | 52 59 20 4d 41 50 50 49 |*** MEMO|RY MAPPI|
|00001980| 4e 47 20 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |NG *****|********|
|00001990| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2f |********|*******/|
|000019a0| 0a 0a 2f 2a 0a 20 2a 20 | 45 69 74 68 65 72 20 64 |../*. * |Either d|
|000019b0| 65 66 69 6e 65 20 6f 72 | 20 75 6e 64 65 66 20 4d |efine or| undef M|
|000019c0| 45 4d 4f 52 59 5f 4d 41 | 50 0a 20 2a 20 49 66 20 |EMORY_MA|P. * If |
|000019d0| 79 6f 75 20 64 65 66 69 | 6e 65 20 69 74 2c 20 79 |you defi|ne it, y|
|000019e0| 6f 75 20 6d 75 73 74 20 | 61 6c 73 6f 20 64 65 66 |ou must |also def|
|000019f0| 69 6e 65 20 74 68 65 20 | 6d 65 6d 6f 72 79 20 6d |ine the |memory m|
|00001a00| 61 70 70 69 6e 67 20 69 | 6e 74 65 72 66 61 63 65 |apping i|nterface|
|00001a10| 0a 20 2a 20 66 75 6e 63 | 74 69 6f 6e 73 3a 20 53 |. * func|tions: S|
|00001a20| 49 4f 5f 4d 4d 41 50 2c | 20 53 49 4f 5f 4d 55 4e |IO_MMAP,| SIO_MUN|
|00001a30| 4d 41 50 2c 20 53 49 4f | 5f 4d 4e 45 45 44 0a 20 |MAP, SIO|_MNEED. |
|00001a40| 2a 20 53 49 4f 5f 4d 4e | 45 45 44 20 69 73 20 6e |* SIO_MN|EED is n|
|00001a50| 6f 74 20 6e 65 63 65 73 | 73 61 72 79 3b 20 69 66 |ot neces|sary; if|
|00001a60| 20 79 6f 75 72 20 4f 53 | 20 64 6f 65 73 20 6e 6f | your OS| does no|
|00001a70| 74 20 73 75 70 70 6f 72 | 74 20 69 74 0a 20 2a 20 |t suppor|t it. * |
|00001a80| 64 65 66 69 6e 65 20 69 | 74 20 74 6f 20 6e 6f 74 |define i|t to not|
|00001a90| 68 69 6e 67 2e 0a 20 2a | 2f 20 0a 23 75 6e 64 65 |hing.. *|/ .#unde|
|00001aa0| 66 20 4d 45 4d 4f 52 59 | 5f 4d 41 50 0a 0a 2f 2a |f MEMORY|_MAP../*|
|00001ab0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001ac0| 2a 2a 2a 2a 2a 2a 2a 20 | 46 49 4e 41 4c 49 5a 41 |******* |FINALIZA|
|00001ad0| 54 49 4f 4e 20 43 4f 44 | 45 20 2a 2a 2a 2a 2a 2a |TION COD|E ******|
|00001ae0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001af0| 2a 2a 2a 2a 2a 2a 2f 0a | 0a 2f 2a 0a 20 2a 20 45 |******/.|./*. * E|
|00001b00| 69 74 68 65 72 20 64 65 | 66 69 6e 65 20 6f 72 20 |ither de|fine or |
|00001b10| 75 6e 64 65 66 20 48 41 | 53 5f 46 49 4e 41 4c 49 |undef HA|S_FINALI|
|00001b20| 5a 41 54 49 4f 4e 0a 20 | 2a 20 49 66 20 79 6f 75 |ZATION. |* If you|
|00001b30| 20 64 65 66 69 6e 65 20 | 69 74 2c 20 79 6f 75 20 | define |it, you |
|00001b40| 6d 75 73 74 20 64 65 66 | 69 6e 65 20 74 68 65 20 |must def|ine the |
|00001b50| 6d 61 63 72 6f 73 20 53 | 49 4f 5f 46 49 4e 41 4c |macros S|IO_FINAL|
|00001b60| 49 5a 45 20 0a 20 2a 20 | 61 6e 64 20 53 49 4f 5f |IZE . * |and SIO_|
|00001b70| 44 45 46 49 4e 45 5f 46 | 49 4e 0a 20 2a 20 53 49 |DEFINE_F|IN. * SI|
|00001b80| 4f 5f 46 49 4e 41 4c 49 | 5a 45 20 68 61 73 20 61 |O_FINALI|ZE has a|
|00001b90| 20 66 75 6e 63 74 69 6f | 6e 20 61 73 20 61 6e 20 | functio|n as an |
|00001ba0| 61 72 67 75 6d 65 6e 74 | 20 61 6e 64 20 69 74 73 |argument| and its|
|00001bb0| 20 76 61 6c 75 65 0a 20 | 2a 20 69 73 20 61 6e 20 | value. |* is an |
|00001bc0| 65 78 70 72 65 73 73 69 | 6f 6e 20 77 68 6f 73 65 |expressi|on whose|
|00001bd0| 20 76 61 6c 75 65 20 69 | 73 20 54 52 55 45 20 69 | value i|s TRUE i|
|00001be0| 66 20 74 68 65 20 66 69 | 6e 61 6c 69 7a 61 74 69 |f the fi|nalizati|
|00001bf0| 6f 6e 20 66 75 6e 63 74 | 69 6f 6e 0a 20 2a 20 77 |on funct|ion. * w|
|00001c00| 61 73 20 73 75 63 63 65 | 73 73 66 75 6c 6c 79 20 |as succe|ssfully |
|00001c10| 69 6e 73 74 61 6c 6c 65 | 64 0a 20 2a 20 53 49 4f |installe|d. * SIO|
|00001c20| 5f 44 45 46 49 4e 45 5f | 46 49 4e 20 68 61 73 20 |_DEFINE_|FIN has |
|00001c30| 61 20 66 75 6e 63 74 69 | 6f 6e 20 61 73 20 61 6e |a functi|on as an|
|00001c40| 20 61 72 67 75 6d 65 6e | 74 20 61 6e 64 20 63 72 | argumen|t and cr|
|00001c50| 65 61 74 65 64 20 61 6e | 0a 20 2a 20 61 70 70 72 |eated an|. * appr|
|00001c60| 6f 70 72 69 61 74 65 20 | 66 75 6e 63 74 69 6f 6e |opriate |function|
|00001c70| 20 64 65 66 69 6e 69 74 | 69 6f 6e 2e 0a 20 2a 2f | definit|ion.. */|
|00001c80| 0a 23 64 65 66 69 6e 65 | 20 48 41 53 5f 46 49 4e |.#define| HAS_FIN|
|00001c90| 41 4c 49 5a 41 54 49 4f | 4e 5f 46 55 4e 43 54 49 |ALIZATIO|N_FUNCTI|
|00001ca0| 4f 4e 0a 23 64 65 66 69 | 6e 65 20 53 49 4f 5f 46 |ON.#defi|ne SIO_F|
|00001cb0| 49 4e 41 4c 49 5a 45 28 | 20 66 75 6e 63 20 29 09 |INALIZE(| func ).|
|00001cc0| 09 09 28 20 61 74 65 78 | 69 74 28 20 66 75 6e 63 |..( atex|it( func|
|00001cd0| 20 29 20 3d 3d 20 30 20 | 29 0a 23 64 65 66 69 6e | ) == 0 |).#defin|
|00001ce0| 65 20 53 49 4f 5f 44 45 | 46 49 4e 45 5f 46 49 4e |e SIO_DE|FINE_FIN|
|00001cf0| 28 20 66 75 6e 63 20 29 | 09 09 73 74 61 74 69 63 |( func )|..static|
|00001d00| 20 76 6f 69 64 20 66 75 | 6e 63 20 28 29 0a 0a 0a | void fu|nc ()...|
|00001d10| 2f 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |/*******|********|
|00001d20| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 20 47 45 4e 45 52 41 |********|* GENERA|
|00001d30| 4c 20 43 4f 4e 53 54 41 | 4e 54 53 20 2a 2a 2a 2a |L CONSTA|NTS ****|
|00001d40| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001d50| 2a 2a 2a 2a 2a 2a 2a 2a | 2f 0a 0a 2f 2a 0a 20 2a |********|/../*. *|
|00001d60| 20 44 65 66 69 6e 65 20 | 61 74 20 6d 6f 73 74 20 | Define |at most |
|00001d70| 31 20 6f 66 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 |1 of the| followi|
|00001d80| 6e 67 20 74 77 6f 20 66 | 6c 61 67 73 0a 20 2a 2f |ng two f|lags. */|
|00001d90| 0a 23 64 65 66 69 6e 65 | 20 48 41 53 5f 4d 45 4d |.#define| HAS_MEM|
|00001da0| 4f 50 53 0a 23 75 6e 64 | 65 66 20 48 41 53 5f 42 |OPS.#und|ef HAS_B|
|00001db0| 43 4f 50 59 0a 0a 2f 2a | 0a 20 2a 20 44 65 66 69 |COPY../*|. * Defi|
|00001dc0| 6e 65 20 48 41 53 5f 49 | 53 41 54 54 59 20 69 66 |ne HAS_I|SATTY if|
|00001dd0| 20 74 68 65 20 66 75 6e | 63 74 69 6f 6e 20 69 73 | the fun|ction is|
|00001de0| 61 74 74 79 28 20 66 64 | 20 29 20 65 78 69 73 74 |atty( fd| ) exist|
|00001df0| 73 20 69 6e 20 74 68 65 | 20 43 20 6c 69 62 72 61 |s in the| C libra|
|00001e00| 72 79 0a 20 2a 2f 0a 23 | 64 65 66 69 6e 65 20 48 |ry. */.#|define H|
|00001e10| 41 53 5f 49 53 41 54 54 | 59 0a 0a 2f 2a 0a 20 2a |AS_ISATT|Y../*. *|
|00001e20| 20 4e 5f 53 49 4f 5f 44 | 45 53 43 52 49 50 54 4f | N_SIO_D|ESCRIPTO|
|00001e30| 52 53 20 69 73 20 74 68 | 65 20 6d 61 78 69 6d 75 |RS is th|e maximu|
|00001e40| 6d 20 6e 75 6d 62 65 72 | 20 6f 66 20 66 69 6c 65 |m number| of file|
|00001e50| 20 64 65 73 63 72 69 70 | 74 6f 72 73 0a 20 2a 20 | descrip|tors. * |
|00001e60| 73 75 70 70 6f 72 74 65 | 64 20 62 79 20 74 68 65 |supporte|d by the|
|00001e70| 20 4f 53 0a 20 2a 2f 0a | 23 69 6e 63 6c 75 64 65 | OS. */.|#include|
|00001e80| 20 3c 73 79 73 2f 70 61 | 72 61 6d 2e 68 3e 0a 23 | <sys/pa|ram.h>.#|
|00001e90| 64 65 66 69 6e 65 20 4e | 5f 53 49 4f 5f 44 45 53 |define N|_SIO_DES|
|00001ea0| 43 52 49 50 54 4f 52 53 | 09 09 09 4e 4f 46 49 4c |CRIPTORS|...NOFIL|
|00001eb0| 45 0a 0a 2f 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |E../****|********|
|00001ec0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 20 53 50 52 |********|**** SPR|
|00001ed0| 49 4e 54 20 43 4f 4e 53 | 54 41 4e 54 53 20 2a 2a |INT CONS|TANTS **|
|00001ee0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001ef0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2f 0a 0a 2f 2a 0a |********|**/../*.|
|00001f00| 20 2a 20 53 4d 41 4c 4c | 45 53 54 5f 49 4e 54 3a | * SMALL|EST_INT:|
|00001f10| 20 20 20 20 20 73 6d 61 | 6c 6c 65 73 74 20 69 6e | sma|llest in|
|00001f20| 74 65 67 65 72 20 74 68 | 65 20 6d 61 63 68 69 6e |teger th|e machin|
|00001f30| 65 20 63 61 6e 20 72 65 | 70 72 65 73 65 6e 74 0a |e can re|present.|
|00001f40| 20 2a 20 53 5f 53 4d 41 | 4c 4c 45 53 54 5f 49 4e | * S_SMA|LLEST_IN|
|00001f50| 54 3a 20 20 20 74 68 65 | 20 73 6d 61 6c 6c 65 73 |T: the| smalles|
|00001f60| 74 20 69 6e 74 65 67 65 | 72 20 61 73 20 61 20 73 |t intege|r as a s|
|00001f70| 74 72 69 6e 67 0a 20 2a | 20 53 5f 53 4d 41 4c 4c |tring. *| S_SMALL|
|00001f80| 45 53 54 5f 49 4e 54 5f | 4c 45 4e 3a 20 6c 65 6e |EST_INT_|LEN: len|
|00001f90| 67 74 68 20 6f 66 20 73 | 74 72 69 6e 67 20 63 6f |gth of s|tring co|
|00001fa0| 6e 74 61 69 6e 69 6e 67 | 20 73 6d 61 6c 6c 65 73 |ntaining| smalles|
|00001fb0| 74 20 69 6e 74 65 67 65 | 72 0a 20 2a 0a 20 2a 20 |t intege|r. *. * |
|00001fc0| 54 68 65 73 65 20 63 6f | 6e 73 74 61 6e 74 73 20 |These co|nstants |
|00001fd0| 64 65 70 65 6e 64 20 6f | 6e 20 74 68 65 20 77 6f |depend o|n the wo|
|00001fe0| 72 64 20 73 69 7a 65 20 | 6f 66 20 74 68 65 20 43 |rd size |of the C|
|00001ff0| 50 55 20 61 6e 64 20 74 | 68 65 0a 20 2a 20 74 79 |PU and t|he. * ty|
|00002000| 70 65 20 6f 66 20 61 72 | 69 74 68 6d 65 74 69 63 |pe of ar|ithmetic|
|00002010| 20 28 31 27 73 20 6f 72 | 20 32 27 73 20 63 6f 6d | (1's or| 2's com|
|00002020| 70 6c 65 6d 65 6e 74 29 | 2e 0a 20 2a 2f 0a 0a 23 |plement)|.. */..#|
|00002030| 64 65 66 69 6e 65 20 53 | 4d 41 4c 4c 45 53 54 5f |define S|MALLEST_|
|00002040| 49 4e 54 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |INT | |
|00002050| 20 20 20 28 2d 32 31 34 | 37 34 38 33 36 34 38 29 | (-214|7483648)|
|00002060| 0a 23 64 65 66 69 6e 65 | 20 53 5f 53 4d 41 4c 4c |.#define| S_SMALL|
|00002070| 45 53 54 5f 49 4e 54 20 | 20 20 20 20 20 20 20 20 |EST_INT | |
|00002080| 20 20 20 20 20 22 32 31 | 34 37 34 38 33 36 34 38 | "21|47483648|
|00002090| 22 20 20 20 20 20 20 2f | 2a 20 6e 6f 74 65 3a 20 |" /|* note: |
|000020a0| 6e 6f 20 27 2d 27 20 73 | 69 67 6e 20 2a 2f 0a 23 |no '-' s|ign */.#|
|000020b0| 64 65 66 69 6e 65 20 53 | 5f 53 4d 41 4c 4c 45 53 |define S|_SMALLES|
|000020c0| 54 5f 49 4e 54 5f 4c 45 | 4e 20 20 20 20 20 20 20 |T_INT_LE|N |
|000020d0| 20 20 20 31 30 0a 0a 2f | 2a 0a 20 2a 20 44 65 66 | 10../|*. * Def|
|000020e0| 69 6e 65 20 4c 4f 4e 47 | 5f 49 53 5f 42 49 47 47 |ine LONG|_IS_BIGG|
|000020f0| 45 52 20 69 73 20 73 69 | 7a 65 6f 66 28 20 6c 6f |ER is si|zeof( lo|
|00002100| 6e 67 20 29 20 21 3d 20 | 73 69 7a 65 6f 66 28 20 |ng ) != |sizeof( |
|00002110| 69 6e 74 20 29 0a 20 2a | 2f 0a 23 75 6e 64 65 66 |int ). *|/.#undef|
|00002120| 20 4c 4f 4e 47 5f 49 53 | 5f 42 49 47 47 45 52 0a | LONG_IS|_BIGGER.|
|00002130| 0a 20 20 20 09 09 44 4f | 20 4e 4f 54 20 53 4b 49 |. ..DO| NOT SKI|
|00002140| 50 20 46 4c 41 47 53 3b | 20 75 6e 64 65 66 20 54 |P FLAGS;| undef T|
|00002150| 48 45 4d 0a 20 2a 2f 0a | 0a 0a 2f 2a 2a 2a 2a 2a |HEM. */.|../*****|
|00002160| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002170| 2a 2a 2a 20 4d 45 4d 4f | 52 59 20 4d 41 50 50 49 |*** MEMO|RY MAPPI|
|00002180| 4e 47 20 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |NG *****|********|
|00002190| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2f |********|*******/|
|000021a0| 0a 0a 2f 2a 0a 20 2a 20 | 45 69 74 68 65 72 20 64 |../*. * |Either d|
|000021b0| 65 66 69 6e 65 20 6f 72 | 20 75 6e 64 65 66 20 4d |efine or| undef M|
|000021c0| 45 4d 4f 52 59 5f 4d 41 | 50 0a 20 2a 20 49 66 20 |EMORY_MA|P. * If |
|000021d0| 79 6f 75 20 64 65 66 69 | 6e 65 20 69 74 2c 20 79 |you defi|ne it, y|
|000021e0| 6f 75 20 6d 75 73 74 20 | 61 6c 73 6f 20 64 65 66 |ou must |also def|
|000021f0| 69 6e 65 20 74 68 65 20 | 6d 65 6d 6f 72 79 20 6d |ine the |memory m|
|00002200| 2e 2f 43 6f 6e 66 69 67 | 2f 75 6d 69 70 73 62 73 |./Config|/umipsbs|
|00002210| 64 2d 63 6f 6e 66 69 67 | 2e 68 00 00 00 00 00 00 |d-config|.h......|
|00002220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002260| 00 00 00 00 20 20 20 36 | 30 30 20 00 20 32 33 34 |.... 6|00 . 234|
|00002270| 32 31 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 |21 . | 0 . |
|00002280| 20 20 20 34 34 31 34 20 | 20 35 33 31 31 35 36 34 | 4414 | 5311564|
|00002290| 35 30 31 20 20 31 30 37 | 32 30 00 20 00 00 00 00 |501 107|20. ....|
|000022a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002400| 2f 2a 0a 20 2a 20 28 63 | 29 20 43 6f 70 79 72 69 |/*. * (c|) Copyri|
|00002410| 67 68 74 20 31 39 39 32 | 20 62 79 20 50 61 6e 61 |ght 1992| by Pana|
|00002420| 67 69 6f 74 69 73 20 54 | 73 69 72 69 67 6f 74 69 |giotis T|sirigoti|
|00002430| 73 0a 20 2a 20 41 6c 6c | 20 72 69 67 68 74 73 20 |s. * All| rights |
|00002440| 72 65 73 65 72 76 65 64 | 2e 20 20 54 68 65 20 66 |reserved|. The f|
|00002450| 69 6c 65 20 6e 61 6d 65 | 64 20 43 4f 50 59 52 49 |ile name|d COPYRI|
|00002460| 47 48 54 20 73 70 65 63 | 69 66 69 65 73 20 74 68 |GHT spec|ifies th|
|00002470| 65 20 74 65 72 6d 73 20 | 0a 20 2a 20 61 6e 64 20 |e terms |. * and |
|00002480| 63 6f 6e 64 69 74 69 6f | 6e 73 20 66 6f 72 20 72 |conditio|ns for r|
|00002490| 65 64 69 73 74 72 69 62 | 75 74 69 6f 6e 2e 0a 20 |edistrib|ution.. |
|000024a0| 2a 2f 0a 0a 2f 2a 0a 20 | 2a 20 24 49 64 3a 20 75 |*/../*. |* $Id: u|
|000024b0| 6d 69 70 73 62 73 64 2d | 63 6f 6e 66 69 67 2e 68 |mipsbsd-|config.h|
|000024c0| 2c 76 20 37 2e 33 20 31 | 39 39 32 2f 30 36 2f 32 |,v 7.3 1|992/06/2|
|000024d0| 32 20 32 30 3a 32 33 3a | 31 38 20 70 61 6e 6f 73 |2 20:23:|18 panos|
|000024e0| 20 45 78 70 20 24 0a 20 | 2a 2f 0a 0a 2f 2a 0a 20 | Exp $. |*/../*. |
|000024f0| 2a 20 55 4d 49 50 53 2d | 42 53 44 20 63 6f 6e 66 |* UMIPS-|BSD conf|
|00002500| 69 67 75 72 61 74 69 6f | 6e 20 66 69 6c 65 2e 20 |iguratio|n file. |
|00002510| 54 68 69 73 20 4f 53 20 | 69 73 20 61 20 42 53 44 |This OS |is a BSD|
|00002520| 20 34 2e 33 20 64 65 72 | 69 76 61 74 69 76 65 0a | 4.3 der|ivative.|
|00002530| 20 2a 2f 0a 0a 2f 2a 0a | 20 2a 20 4e 4f 54 45 3a | */../*.| * NOTE:|
|00002540| 20 41 4c 4c 20 42 49 4e | 41 52 59 20 46 4c 41 47 | ALL BIN|ARY FLAG|
|00002550| 53 20 4d 55 53 54 20 42 | 45 20 45 49 54 48 45 52 |S MUST B|E EITHER|
|00002560| 20 64 65 66 69 6e 65 27 | 64 20 4f 52 20 75 6e 64 | define'|d OR und|
|00002570| 65 66 27 65 64 2e 0a 20 | 2a 20 20 20 09 09 44 4f |ef'ed.. |* ..DO|
|00002580| 20 4e 4f 54 20 53 4b 49 | 50 20 46 4c 41 47 53 3b | NOT SKI|P FLAGS;|
|00002590| 20 75 6e 64 65 66 20 54 | 48 45 4d 0a 20 2a 2f 0a | undef T|HEM. */.|
|000025a0| 0a 0a 2f 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |../*****|********|
|000025b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 20 4d 45 4d 4f |********|*** MEMO|
|000025c0| 52 59 20 4d 41 50 50 49 | 4e 47 20 2a 2a 2a 2a 2a |RY MAPPI|NG *****|
|000025d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000025e0| 2a 2a 2a 2a 2a 2a 2a 2f | 0a 0a 2f 2a 0a 20 2a 20 |*******/|../*. * |
|000025f0| 45 69 74 68 65 72 20 64 | 65 66 69 6e 65 20 6f 72 |Either d|efine or|
|00002600| 20 75 6e 64 65 66 20 4d | 45 4d 4f 52 59 5f 4d 41 | undef M|EMORY_MA|
|00002610| 50 0a 20 2a 20 49 66 20 | 79 6f 75 20 64 65 66 69 |P. * If |you defi|
|00002620| 6e 65 20 69 74 2c 20 79 | 6f 75 20 6d 75 73 74 20 |ne it, y|ou must |
|00002630| 61 6c 73 6f 20 64 65 66 | 69 6e 65 20 74 68 65 20 |also def|ine the |
|00002640| 6d 65 6d 6f 72 79 20 6d | 61 70 70 69 6e 67 20 69 |memory m|apping i|
|00002650| 6e 74 65 72 66 61 63 65 | 0a 20 2a 20 66 75 6e 63 |nterface|. * func|
|00002660| 74 69 6f 6e 73 3a 20 53 | 49 4f 5f 4d 4d 41 50 2c |tions: S|IO_MMAP,|
|00002670| 20 53 49 4f 5f 4d 55 4e | 4d 41 50 2c 20 53 49 4f | SIO_MUN|MAP, SIO|
|00002680| 5f 4d 4e 45 45 44 0a 20 | 2a 20 53 49 4f 5f 4d 4e |_MNEED. |* SIO_MN|
|00002690| 45 45 44 20 69 73 20 6e | 6f 74 20 6e 65 63 65 73 |EED is n|ot neces|
|000026a0| 73 61 72 79 3b 20 69 66 | 20 79 6f 75 72 20 4f 53 |sary; if| your OS|
|000026b0| 20 64 6f 65 73 20 6e 6f | 74 20 73 75 70 70 6f 72 | does no|t suppor|
|000026c0| 74 20 69 74 0a 20 2a 20 | 64 65 66 69 6e 65 20 69 |t it. * |define i|
|000026d0| 74 20 74 6f 20 6e 6f 74 | 68 69 6e 67 2e 0a 20 2a |t to not|hing.. *|
|000026e0| 2f 20 0a 23 75 6e 64 65 | 66 20 4d 45 4d 4f 52 59 |/ .#unde|f MEMORY|
|000026f0| 5f 4d 41 50 0a 0a 2f 2a | 2a 2a 2a 2a 2a 2a 2a 2a |_MAP../*|********|
|00002700| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 20 |********|******* |
|00002710| 46 49 4e 41 4c 49 5a 41 | 54 49 4f 4e 20 43 4f 44 |FINALIZA|TION COD|
|00002720| 45 20 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |E ******|********|
|00002730| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2f 0a |********|******/.|
|00002740| 0a 2f 2a 0a 20 2a 20 45 | 69 74 68 65 72 20 64 65 |./*. * E|ither de|
|00002750| 66 69 6e 65 20 6f 72 20 | 75 6e 64 65 66 20 48 41 |fine or |undef HA|
|00002760| 53 5f 46 49 4e 41 4c 49 | 5a 41 54 49 4f 4e 0a 20 |S_FINALI|ZATION. |
|00002770| 2a 20 49 66 20 79 6f 75 | 20 64 65 66 69 6e 65 20 |* If you| define |
|00002780| 69 74 2c 20 79 6f 75 20 | 6d 75 73 74 20 64 65 66 |it, you |must def|
|00002790| 69 6e 65 20 74 68 65 20 | 6d 61 63 72 6f 73 20 53 |ine the |macros S|
|000027a0| 49 4f 5f 46 49 4e 41 4c | 49 5a 45 0a 20 2a 20 61 |IO_FINAL|IZE. * a|
|000027b0| 6e 64 20 53 49 4f 5f 44 | 45 46 49 4e 45 5f 46 49 |nd SIO_D|EFINE_FI|
|000027c0| 4e 0a 20 2a 20 53 49 4f | 5f 46 49 4e 41 4c 49 5a |N. * SIO|_FINALIZ|
|000027d0| 45 20 68 61 73 20 61 20 | 66 75 6e 63 74 69 6f 6e |E has a |function|
|000027e0| 20 61 73 20 61 6e 20 61 | 72 67 75 6d 65 6e 74 20 | as an a|rgument |
|000027f0| 61 6e 64 20 69 74 73 20 | 76 61 6c 75 65 0a 20 2a |and its |value. *|
|00002800| 20 69 73 20 61 6e 20 65 | 78 70 72 65 73 73 69 6f | is an e|xpressio|
|00002810| 6e 20 77 68 6f 73 65 20 | 76 61 6c 75 65 20 69 73 |n whose |value is|
|00002820| 20 54 52 55 45 20 69 66 | 20 74 68 65 20 66 69 6e | TRUE if| the fin|
|00002830| 61 6c 69 7a 61 74 69 6f | 6e 20 66 75 6e 63 74 69 |alizatio|n functi|
|00002840| 6f 6e 0a 20 2a 20 77 61 | 73 20 73 75 63 63 65 73 |on. * wa|s succes|
|00002850| 73 66 75 6c 6c 79 20 69 | 6e 73 74 61 6c 6c 65 64 |sfully i|nstalled|
|00002860| 0a 20 2a 20 53 49 4f 5f | 44 45 46 49 4e 45 5f 46 |. * SIO_|DEFINE_F|
|00002870| 49 4e 20 68 61 73 20 61 | 20 66 75 6e 63 74 69 6f |IN has a| functio|
|00002880| 6e 20 61 73 20 61 6e 20 | 61 72 67 75 6d 65 6e 74 |n as an |argument|
|00002890| 20 61 6e 64 20 63 72 65 | 61 74 65 64 20 61 6e 0a | and cre|ated an.|
|000028a0| 20 2a 20 61 70 70 72 6f | 70 72 69 61 74 65 20 66 | * appro|priate f|
|000028b0| 75 6e 63 74 69 6f 6e 20 | 64 65 66 69 6e 69 74 69 |unction |definiti|
|000028c0| 6f 6e 2e 0a 20 2a 2f 0a | 23 75 6e 64 65 66 20 48 |on.. */.|#undef H|
|000028d0| 41 53 5f 46 49 4e 41 4c | 49 5a 41 54 49 4f 4e 5f |AS_FINAL|IZATION_|
|000028e0| 46 55 4e 43 54 49 4f 4e | 0a 0a 0a 2f 2a 2a 2a 2a |FUNCTION|.../****|
|000028f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002900| 2a 2a 2a 2a 20 47 45 4e | 45 52 41 4c 20 43 4f 4e |**** GEN|ERAL CON|
|00002910| 53 54 41 4e 54 53 20 2a | 2a 2a 2a 2a 2a 2a 2a 2a |STANTS *|********|
|00002920| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002930| 2a 2a 2a 2f 0a 0a 2f 2a | 0a 20 2a 20 44 65 66 69 |***/../*|. * Defi|
|00002940| 6e 65 20 61 74 20 6d 6f | 73 74 20 31 20 6f 66 20 |ne at mo|st 1 of |
|00002950| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 74 77 |the foll|owing tw|
|00002960| 6f 20 66 6c 61 67 73 0a | 20 2a 2f 0a 23 75 6e 64 |o flags.| */.#und|
|00002970| 65 66 20 48 41 53 5f 4d | 45 4d 4f 50 53 0a 23 64 |ef HAS_M|EMOPS.#d|
|00002980| 65 66 69 6e 65 20 48 41 | 53 5f 42 43 4f 50 59 0a |efine HA|S_BCOPY.|
|00002990| 0a 2f 2a 0a 20 2a 20 44 | 65 66 69 6e 65 20 48 41 |./*. * D|efine HA|
|000029a0| 53 5f 49 53 41 54 54 59 | 20 69 66 20 74 68 65 20 |S_ISATTY| if the |
|000029b0| 66 75 6e 63 74 69 6f 6e | 20 69 73 61 74 74 79 28 |function| isatty(|
|000029c0| 20 66 64 20 29 20 65 78 | 69 73 74 73 20 69 6e 20 | fd ) ex|ists in |
|000029d0| 74 68 65 20 43 20 6c 69 | 62 72 61 72 79 0a 20 2a |the C li|brary. *|
|000029e0| 2f 0a 23 64 65 66 69 6e | 65 20 48 41 53 5f 49 53 |/.#defin|e HAS_IS|
|000029f0| 41 54 54 59 0a 0a 2f 2a | 0a 20 2a 20 4e 5f 53 49 |ATTY../*|. * N_SI|
|00002a00| 4f 5f 44 45 53 43 52 49 | 50 54 4f 52 53 20 69 73 |O_DESCRI|PTORS is|
|00002a10| 20 74 68 65 20 6d 61 78 | 69 6d 75 6d 20 6e 75 6d | the max|imum num|
|00002a20| 62 65 72 20 6f 66 20 66 | 69 6c 65 20 64 65 73 63 |ber of f|ile desc|
|00002a30| 72 69 70 74 6f 72 73 0a | 20 2a 20 73 75 70 70 6f |riptors.| * suppo|
|00002a40| 72 74 65 64 20 62 79 20 | 74 68 65 20 4f 53 0a 20 |rted by |the OS. |
|00002a50| 2a 2f 0a 23 69 6e 63 6c | 75 64 65 20 3c 73 79 73 |*/.#incl|ude <sys|
|00002a60| 2f 70 61 72 61 6d 2e 68 | 3e 0a 23 64 65 66 69 6e |/param.h|>.#defin|
|00002a70| 65 20 4e 5f 53 49 4f 5f | 44 45 53 43 52 49 50 54 |e N_SIO_|DESCRIPT|
|00002a80| 4f 52 53 09 09 09 4e 4f | 46 49 4c 45 0a 0a 2f 2a |ORS...NO|FILE../*|
|00002a90| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002aa0| 2a 2a 2a 2a 2a 2a 2a 20 | 53 50 52 49 4e 54 20 43 |******* |SPRINT C|
|00002ab0| 4f 4e 53 54 41 4e 54 53 | 20 2a 2a 2a 2a 2a 2a 2a |ONSTANTS| *******|
|00002ac0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002ad0| 2a 2a 2a 2a 2a 2f 0a 0a | 2f 2a 0a 20 2a 20 53 4d |*****/..|/*. * SM|
|00002ae0| 41 4c 4c 45 53 54 5f 49 | 4e 54 3a 20 20 20 20 20 |ALLEST_I|NT: |
|00002af0| 73 6d 61 6c 6c 65 73 74 | 20 69 6e 74 65 67 65 72 |smallest| integer|
|00002b00| 20 74 68 65 20 6d 61 63 | 68 69 6e 65 20 63 61 6e | the mac|hine can|
|00002b10| 20 72 65 70 72 65 73 65 | 6e 74 0a 20 2a 20 53 5f | represe|nt. * S_|
|00002b20| 53 4d 41 4c 4c 45 53 54 | 5f 49 4e 54 3a 20 20 20 |SMALLEST|_INT: |
|00002b30| 74 68 65 20 73 6d 61 6c | 6c 65 73 74 20 69 6e 74 |the smal|lest int|
|00002b40| 65 67 65 72 20 61 73 20 | 61 20 73 74 72 69 6e 67 |eger as |a string|
|00002b50| 0a 20 2a 20 53 5f 53 4d | 41 4c 4c 45 53 54 5f 49 |. * S_SM|ALLEST_I|
|00002b60| 4e 54 5f 4c 45 4e 3a 20 | 6c 65 6e 67 74 68 20 6f |NT_LEN: |length o|
|00002b70| 66 20 73 74 72 69 6e 67 | 20 63 6f 6e 74 61 69 6e |f string| contain|
|00002b80| 69 6e 67 20 73 6d 61 6c | 6c 65 73 74 20 69 6e 74 |ing smal|lest int|
|00002b90| 65 67 65 72 0a 20 2a 0a | 20 2a 20 54 68 65 73 65 |eger. *.| * These|
|00002ba0| 20 63 6f 6e 73 74 61 6e | 74 73 20 64 65 70 65 6e | constan|ts depen|
|00002bb0| 64 20 6f 6e 20 74 68 65 | 20 77 6f 72 64 20 73 69 |d on the| word si|
|00002bc0| 7a 65 20 6f 66 20 74 68 | 65 20 43 50 55 20 61 6e |ze of th|e CPU an|
|00002bd0| 64 20 74 68 65 0a 20 2a | 20 74 79 70 65 20 6f 66 |d the. *| type of|
|00002be0| 20 61 72 69 74 68 6d 65 | 74 69 63 20 28 31 27 73 | arithme|tic (1's|
|00002bf0| 20 6f 72 20 32 27 73 20 | 63 6f 6d 70 6c 65 6d 65 | or 2's |compleme|
|00002c00| 6e 74 29 2e 0a 20 2a 2f | 0a 0a 23 64 65 66 69 6e |nt).. */|..#defin|
|00002c10| 65 20 53 4d 41 4c 4c 45 | 53 54 5f 49 4e 54 20 20 |e SMALLE|ST_INT |
|00002c20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 28 2d | | (-|
|00002c30| 32 31 34 37 34 38 33 36 | 34 38 29 0a 23 64 65 66 |21474836|48).#def|
|00002c40| 69 6e 65 20 53 5f 53 4d | 41 4c 4c 45 53 54 5f 49 |ine S_SM|ALLEST_I|
|00002c50| 4e 54 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |NT | |
|00002c60| 22 32 31 34 37 34 38 33 | 36 34 38 22 20 20 20 20 |"2147483|648" |
|00002c70| 20 20 2f 2a 20 6e 6f 74 | 65 3a 20 6e 6f 20 27 2d | /* not|e: no '-|
|00002c80| 27 20 73 69 67 6e 20 2a | 2f 0a 23 64 65 66 69 6e |' sign *|/.#defin|
|00002c90| 65 20 53 5f 53 4d 41 4c | 4c 45 53 54 5f 49 4e 54 |e S_SMAL|LEST_INT|
|00002ca0| 5f 4c 45 4e 20 20 20 20 | 20 20 20 20 20 20 31 30 |_LEN | 10|
|00002cb0| 0a 0a 2f 2a 0a 20 2a 20 | 44 65 66 69 6e 65 20 4c |../*. * |Define L|
|00002cc0| 4f 4e 47 5f 49 53 5f 42 | 49 47 47 45 52 20 69 73 |ONG_IS_B|IGGER is|
|00002cd0| 20 73 69 7a 65 6f 66 28 | 20 6c 6f 6e 67 20 29 20 | sizeof(| long ) |
|00002ce0| 21 3d 20 73 69 7a 65 6f | 66 28 20 69 6e 74 20 29 |!= sizeo|f( int )|
|00002cf0| 0a 20 2a 2f 0a 23 75 6e | 64 65 66 20 4c 4f 4e 47 |. */.#un|def LONG|
|00002d00| 5f 49 53 5f 42 49 47 47 | 45 52 0a 0a 4c 45 53 54 |_IS_BIGG|ER..LEST|
|00002d10| 5f 49 4e 54 3a 20 20 20 | 74 68 65 20 73 6d 61 6c |_INT: |the smal|
|00002d20| 6c 65 73 74 20 69 6e 74 | 65 67 65 72 20 61 73 20 |lest int|eger as |
|00002d30| 61 20 73 74 72 69 6e 67 | 0a 20 2a 20 53 5f 53 4d |a string|. * S_SM|
|00002d40| 41 4c 4c 45 53 54 5f 49 | 4e 54 5f 4c 45 4e 3a 20 |ALLEST_I|NT_LEN: |
|00002d50| 6c 65 6e 67 74 68 20 6f | 66 20 73 74 72 69 6e 67 |length o|f string|
|00002d60| 20 63 6f 6e 74 61 69 6e | 69 6e 67 20 73 6d 61 6c | contain|ing smal|
|00002d70| 6c 65 73 74 20 69 6e 74 | 65 67 65 72 0a 20 2a 0a |lest int|eger. *.|
|00002d80| 20 2a 20 54 68 65 73 65 | 20 63 6f 6e 73 74 61 6e | * These| constan|
|00002d90| 74 73 20 64 65 70 65 6e | 64 20 6f 6e 20 74 68 65 |ts depen|d on the|
|00002da0| 20 77 6f 72 64 20 73 69 | 7a 65 20 6f 66 20 74 68 | word si|ze of th|
|00002db0| 65 20 43 50 55 20 61 6e | 64 20 74 68 65 0a 20 2a |e CPU an|d the. *|
|00002dc0| 20 74 79 70 65 20 6f 66 | 20 61 72 69 74 68 6d 65 | type of| arithme|
|00002dd0| 74 69 63 20 28 31 27 73 | 20 6f 72 20 32 27 73 20 |tic (1's| or 2's |
|00002de0| 63 6f 6d 70 6c 65 6d 65 | 6e 74 29 2e 0a 20 2a 2f |compleme|nt).. */|
|00002df0| 0a 0a 23 64 65 66 69 6e | 65 20 53 4d 41 4c 4c 45 |..#defin|e SMALLE|
|00002e00| 2e 2f 43 6f 6e 66 69 67 | 2f 73 79 73 76 2d 63 6f |./Config|/sysv-co|
|00002e10| 6e 66 69 67 2e 68 00 00 | 00 00 00 00 00 00 00 00 |nfig.h..|........|
|00002e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e60| 00 00 00 00 20 20 20 36 | 30 30 20 00 20 32 33 34 |.... 6|00 . 234|
|00002e70| 32 31 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 |21 . | 0 . |
|00002e80| 20 20 20 34 36 31 31 20 | 20 35 33 31 31 35 36 34 | 4611 | 5311564|
|00002e90| 35 30 30 20 20 31 30 30 | 37 34 00 20 00 00 00 00 |500 100|74. ....|
|00002ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003000| 2f 2a 0a 20 2a 20 28 63 | 29 20 43 6f 70 79 72 69 |/*. * (c|) Copyri|
|00003010| 67 68 74 20 31 39 39 32 | 20 62 79 20 50 61 6e 61 |ght 1992| by Pana|
|00003020| 67 69 6f 74 69 73 20 54 | 73 69 72 69 67 6f 74 69 |giotis T|sirigoti|
|00003030| 73 0a 20 2a 20 41 6c 6c | 20 72 69 67 68 74 73 20 |s. * All| rights |
|00003040| 72 65 73 65 72 76 65 64 | 2e 20 20 54 68 65 20 66 |reserved|. The f|
|00003050| 69 6c 65 20 6e 61 6d 65 | 64 20 43 4f 50 59 52 49 |ile name|d COPYRI|
|00003060| 47 48 54 20 73 70 65 63 | 69 66 69 65 73 20 74 68 |GHT spec|ifies th|
|00003070| 65 20 74 65 72 6d 73 20 | 0a 20 2a 20 61 6e 64 20 |e terms |. * and |
|00003080| 63 6f 6e 64 69 74 69 6f | 6e 73 20 66 6f 72 20 72 |conditio|ns for r|
|00003090| 65 64 69 73 74 72 69 62 | 75 74 69 6f 6e 2e 0a 20 |edistrib|ution.. |
|000030a0| 2a 2f 0a 0a 2f 2a 0a 20 | 2a 20 24 49 64 3a 20 73 |*/../*. |* $Id: s|
|000030b0| 79 73 76 2d 63 6f 6e 66 | 69 67 2e 68 2c 76 20 37 |ysv-conf|ig.h,v 7|
|000030c0| 2e 33 20 31 39 39 32 2f | 30 36 2f 32 32 20 32 31 |.3 1992/|06/22 21|
|000030d0| 3a 34 38 3a 30 34 20 70 | 61 6e 6f 73 20 45 78 70 |:48:04 p|anos Exp|
|000030e0| 20 24 0a 20 2a 2f 0a 0a | 2f 2a 0a 20 2a 20 53 79 | $. */..|/*. * Sy|
|000030f0| 73 74 65 6d 20 56 2c 20 | 52 65 6c 65 61 73 65 20 |stem V, |Release |
|00003100| 5b 32 33 5d 20 63 6f 6e | 66 69 67 75 72 61 74 69 |[23] con|figurati|
|00003110| 6f 6e 20 66 69 6c 65 0a | 20 2a 2f 0a 0a 2f 2a 0a |on file.| */../*.|
|00003120| 20 2a 20 4e 4f 54 45 3a | 20 41 4c 4c 20 42 49 4e | * NOTE:| ALL BIN|
|00003130| 41 52 59 20 46 4c 41 47 | 53 20 4d 55 53 54 20 42 |ARY FLAG|S MUST B|
|00003140| 45 20 45 49 54 48 45 52 | 20 64 65 66 69 6e 65 27 |E EITHER| define'|
|00003150| 64 20 4f 52 20 75 6e 64 | 65 66 27 65 64 2e 0a 20 |d OR und|ef'ed.. |
|00003160| 2a 20 20 20 09 09 44 4f | 20 4e 4f 54 20 53 4b 49 |* ..DO| NOT SKI|
|00003170| 50 20 46 4c 41 47 53 3b | 20 75 6e 64 65 66 20 54 |P FLAGS;| undef T|
|00003180| 48 45 4d 0a 20 2a 2f 0a | 0a 0a 2f 2a 2a 2a 2a 2a |HEM. */.|../*****|
|00003190| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000031a0| 2a 2a 2a 20 4d 45 4d 4f | 52 59 20 4d 41 50 50 49 |*** MEMO|RY MAPPI|
|000031b0| 4e 47 20 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |NG *****|********|
|000031c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2f |********|*******/|
|000031d0| 0a 0a 2f 2a 0a 20 2a 20 | 45 69 74 68 65 72 20 64 |../*. * |Either d|
|000031e0| 65 66 69 6e 65 20 6f 72 | 20 75 6e 64 65 66 20 4d |efine or| undef M|
|000031f0| 45 4d 4f 52 59 5f 4d 41 | 50 0a 20 2a 20 49 66 20 |EMORY_MA|P. * If |
|00003200| 79 6f 75 20 64 65 66 69 | 6e 65 20 69 74 2c 20 79 |you defi|ne it, y|
|00003210| 6f 75 20 6d 75 73 74 20 | 61 6c 73 6f 20 64 65 66 |ou must |also def|
|00003220| 69 6e 65 20 74 68 65 20 | 6d 65 6d 6f 72 79 20 6d |ine the |memory m|
|00003230| 61 70 70 69 6e 67 20 69 | 6e 74 65 72 66 61 63 65 |apping i|nterface|
|00003240| 0a 20 2a 20 66 75 6e 63 | 74 69 6f 6e 73 3a 20 53 |. * func|tions: S|
|00003250| 49 4f 5f 4d 4d 41 50 2c | 20 53 49 4f 5f 4d 55 4e |IO_MMAP,| SIO_MUN|
|00003260| 4d 41 50 2c 20 53 49 4f | 5f 4d 4e 45 45 44 0a 20 |MAP, SIO|_MNEED. |
|00003270| 2a 20 53 49 4f 5f 4d 4e | 45 45 44 20 69 73 20 6e |* SIO_MN|EED is n|
|00003280| 6f 74 20 6e 65 63 65 73 | 73 61 72 79 3b 20 69 66 |ot neces|sary; if|
|00003290| 20 79 6f 75 72 20 4f 53 | 20 64 6f 65 73 20 6e 6f | your OS| does no|
|000032a0| 74 20 73 75 70 70 6f 72 | 74 20 69 74 0a 20 2a 20 |t suppor|t it. * |
|000032b0| 64 65 66 69 6e 65 20 69 | 74 20 74 6f 20 6e 6f 74 |define i|t to not|
|000032c0| 68 69 6e 67 2e 0a 20 2a | 2f 20 0a 23 75 6e 64 65 |hing.. *|/ .#unde|
|000032d0| 66 20 4d 45 4d 4f 52 59 | 5f 4d 41 50 0a 0a 2f 2a |f MEMORY|_MAP../*|
|000032e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000032f0| 2a 2a 2a 2a 2a 2a 2a 20 | 46 49 4e 41 4c 49 5a 41 |******* |FINALIZA|
|00003300| 54 49 4f 4e 20 43 4f 44 | 45 20 2a 2a 2a 2a 2a 2a |TION COD|E ******|
|00003310| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003320| 2a 2a 2a 2a 2a 2a 2f 0a | 0a 2f 2a 0a 20 2a 20 45 |******/.|./*. * E|
|00003330| 69 74 68 65 72 20 64 65 | 66 69 6e 65 20 6f 72 20 |ither de|fine or |
|00003340| 75 6e 64 65 66 20 48 41 | 53 5f 46 49 4e 41 4c 49 |undef HA|S_FINALI|
|00003350| 5a 41 54 49 4f 4e 0a 20 | 2a 20 49 66 20 79 6f 75 |ZATION. |* If you|
|00003360| 20 64 65 66 69 6e 65 20 | 69 74 2c 20 79 6f 75 20 | define |it, you |
|00003370| 6d 75 73 74 20 64 65 66 | 69 6e 65 20 74 68 65 20 |must def|ine the |
|00003380| 6d 61 63 72 6f 73 20 53 | 49 4f 5f 46 49 4e 41 4c |macros S|IO_FINAL|
|00003390| 49 5a 45 0a 20 2a 20 61 | 6e 64 20 53 49 4f 5f 44 |IZE. * a|nd SIO_D|
|000033a0| 45 46 49 4e 45 5f 46 49 | 4e 0a 20 2a 20 53 49 4f |EFINE_FI|N. * SIO|
|000033b0| 5f 46 49 4e 41 4c 49 5a | 45 20 68 61 73 20 61 20 |_FINALIZ|E has a |
|000033c0| 66 75 6e 63 74 69 6f 6e | 20 61 73 20 61 6e 20 61 |function| as an a|
|000033d0| 72 67 75 6d 65 6e 74 20 | 61 6e 64 20 69 74 73 20 |rgument |and its |
|000033e0| 76 61 6c 75 65 0a 20 2a | 20 69 73 20 61 6e 20 65 |value. *| is an e|
|000033f0| 78 70 72 65 73 73 69 6f | 6e 20 77 68 6f 73 65 20 |xpressio|n whose |
|00003400| 76 61 6c 75 65 20 69 73 | 20 54 52 55 45 20 69 66 |value is| TRUE if|
|00003410| 20 74 68 65 20 66 69 6e | 61 6c 69 7a 61 74 69 6f | the fin|alizatio|
|00003420| 6e 20 66 75 6e 63 74 69 | 6f 6e 0a 20 2a 20 77 61 |n functi|on. * wa|
|00003430| 73 20 73 75 63 63 65 73 | 73 66 75 6c 6c 79 20 69 |s succes|sfully i|
|00003440| 6e 73 74 61 6c 6c 65 64 | 0a 20 2a 20 53 49 4f 5f |nstalled|. * SIO_|
|00003450| 44 45 46 49 4e 45 5f 46 | 49 4e 20 68 61 73 20 61 |DEFINE_F|IN has a|
|00003460| 20 66 75 6e 63 74 69 6f | 6e 20 61 73 20 61 6e 20 | functio|n as an |
|00003470| 61 72 67 75 6d 65 6e 74 | 20 61 6e 64 20 63 72 65 |argument| and cre|
|00003480| 61 74 65 64 20 61 6e 0a | 20 2a 20 61 70 70 72 6f |ated an.| * appro|
|00003490| 70 72 69 61 74 65 20 66 | 75 6e 63 74 69 6f 6e 20 |priate f|unction |
|000034a0| 64 65 66 69 6e 69 74 69 | 6f 6e 2e 0a 20 2a 2f 0a |definiti|on.. */.|
|000034b0| 23 75 6e 64 65 66 20 48 | 41 53 5f 46 49 4e 41 4c |#undef H|AS_FINAL|
|000034c0| 49 5a 41 54 49 4f 4e 5f | 46 55 4e 43 54 49 4f 4e |IZATION_|FUNCTION|
|000034d0| 0a 0a 0a 2f 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |.../****|********|
|000034e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 20 47 45 4e |********|**** GEN|
|000034f0| 45 52 41 4c 20 43 4f 4e | 53 54 41 4e 54 53 20 2a |ERAL CON|STANTS *|
|00003500| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003510| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2f 0a 0a 2f 2a |********|***/../*|
|00003520| 0a 20 2a 20 44 65 66 69 | 6e 65 20 61 74 20 6d 6f |. * Defi|ne at mo|
|00003530| 73 74 20 31 20 6f 66 20 | 74 68 65 20 66 6f 6c 6c |st 1 of |the foll|
|00003540| 6f 77 69 6e 67 20 74 77 | 6f 20 66 6c 61 67 73 0a |owing tw|o flags.|
|00003550| 20 2a 2f 0a 23 64 65 66 | 69 6e 65 20 48 41 53 5f | */.#def|ine HAS_|
|00003560| 4d 45 4d 4f 50 53 0a 23 | 75 6e 64 65 66 20 48 41 |MEMOPS.#|undef HA|
|00003570| 53 5f 42 43 4f 50 59 0a | 0a 2f 2a 0a 20 2a 20 44 |S_BCOPY.|./*. * D|
|00003580| 65 66 69 6e 65 20 48 41 | 53 5f 49 53 41 54 54 59 |efine HA|S_ISATTY|
|00003590| 20 69 66 20 74 68 65 20 | 66 75 6e 63 74 69 6f 6e | if the |function|
|000035a0| 20 69 73 61 74 74 79 28 | 20 66 64 20 29 20 65 78 | isatty(| fd ) ex|
|000035b0| 69 73 74 73 20 69 6e 20 | 74 68 65 20 43 20 6c 69 |ists in |the C li|
|000035c0| 62 72 61 72 79 0a 20 2a | 2f 0a 23 75 6e 64 65 66 |brary. *|/.#undef|
|000035d0| 20 48 41 53 5f 49 53 41 | 54 54 59 0a 23 64 65 66 | HAS_ISA|TTY.#def|
|000035e0| 69 6e 65 20 53 59 53 56 | 5f 54 54 59 0a 0a 2f 2a |ine SYSV|_TTY../*|
|000035f0| 0a 20 2a 20 4e 5f 53 49 | 4f 5f 44 45 53 43 52 49 |. * N_SI|O_DESCRI|
|00003600| 50 54 4f 52 53 20 69 73 | 20 74 68 65 20 6d 61 78 |PTORS is| the max|
|00003610| 69 6d 75 6d 20 6e 75 6d | 62 65 72 20 6f 66 20 66 |imum num|ber of f|
|00003620| 69 6c 65 20 64 65 73 63 | 72 69 70 74 6f 72 73 0a |ile desc|riptors.|
|00003630| 20 2a 20 73 75 70 70 6f | 72 74 65 64 20 62 79 20 | * suppo|rted by |
|00003640| 74 68 65 20 4f 53 0a 20 | 2a 0a 20 2a 20 58 58 58 |the OS. |*. * XXX|
|00003650| 3a 20 54 68 69 73 20 68 | 61 73 20 6e 6f 74 20 62 |: This h|as not b|
|00003660| 65 65 6e 20 74 65 73 74 | 65 64 2e 20 54 68 65 20 |een test|ed. The |
|00003670| 6e 75 6d 62 65 72 20 6f | 66 20 66 69 6c 65 20 64 |number o|f file d|
|00003680| 65 73 63 72 69 70 74 6f | 72 73 0a 20 2a 09 09 20 |escripto|rs. *.. |
|00003690| 20 6d 61 79 20 72 65 73 | 69 64 65 20 61 74 20 61 | may res|ide at a|
|000036a0| 20 64 69 66 66 65 72 65 | 6e 74 20 70 6c 61 63 65 | differe|nt place|
|000036b0| 20 61 6e 64 20 68 61 76 | 65 20 61 20 64 69 66 66 | and hav|e a diff|
|000036c0| 65 72 65 6e 74 20 6e 61 | 6d 65 2e 0a 20 2a 2f 0a |erent na|me.. */.|
|000036d0| 23 69 6e 63 6c 75 64 65 | 20 3c 73 79 73 2f 70 61 |#include| <sys/pa|
|000036e0| 72 61 6d 2e 68 3e 0a 23 | 64 65 66 69 6e 65 20 4e |ram.h>.#|define N|
|000036f0| 5f 53 49 4f 5f 44 45 53 | 43 52 49 50 54 4f 52 53 |_SIO_DES|CRIPTORS|
|00003700| 09 09 09 4e 4f 46 49 4c | 45 0a 0a 2f 2a 2a 2a 2a |...NOFIL|E../****|
|00003710| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003720| 2a 2a 2a 2a 20 53 50 52 | 49 4e 54 20 43 4f 4e 53 |**** SPR|INT CONS|
|00003730| 54 41 4e 54 53 20 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |TANTS **|********|
|00003740| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003750| 2a 2a 2f 0a 0a 2f 2a 0a | 20 2a 20 53 4d 41 4c 4c |**/../*.| * SMALL|
|00003760| 45 53 54 5f 49 4e 54 3a | 20 20 20 20 20 73 6d 61 |EST_INT:| sma|
|00003770| 6c 6c 65 73 74 20 69 6e | 74 65 67 65 72 20 74 68 |llest in|teger th|
|00003780| 65 20 6d 61 63 68 69 6e | 65 20 63 61 6e 20 72 65 |e machin|e can re|
|00003790| 70 72 65 73 65 6e 74 0a | 20 2a 20 53 5f 53 4d 41 |present.| * S_SMA|
|000037a0| 4c 4c 45 53 54 5f 49 4e | 54 3a 20 20 20 74 68 65 |LLEST_IN|T: the|
|000037b0| 20 73 6d 61 6c 6c 65 73 | 74 20 69 6e 74 65 67 65 | smalles|t intege|
|000037c0| 72 20 61 73 20 61 20 73 | 74 72 69 6e 67 0a 20 2a |r as a s|tring. *|
|000037d0| 20 53 5f 53 4d 41 4c 4c | 45 53 54 5f 49 4e 54 5f | S_SMALL|EST_INT_|
|000037e0| 4c 45 4e 3a 20 6c 65 6e | 67 74 68 20 6f 66 20 73 |LEN: len|gth of s|
|000037f0| 74 72 69 6e 67 20 63 6f | 6e 74 61 69 6e 69 6e 67 |tring co|ntaining|
|00003800| 20 73 6d 61 6c 6c 65 73 | 74 20 69 6e 74 65 67 65 | smalles|t intege|
|00003810| 72 0a 20 2a 0a 20 2a 20 | 54 68 65 73 65 20 63 6f |r. *. * |These co|
|00003820| 6e 73 74 61 6e 74 73 20 | 64 65 70 65 6e 64 20 6f |nstants |depend o|
|00003830| 6e 20 74 68 65 20 77 6f | 72 64 20 73 69 7a 65 20 |n the wo|rd size |
|00003840| 6f 66 20 74 68 65 20 43 | 50 55 20 61 6e 64 20 74 |of the C|PU and t|
|00003850| 68 65 0a 20 2a 20 74 79 | 70 65 20 6f 66 20 61 72 |he. * ty|pe of ar|
|00003860| 69 74 68 6d 65 74 69 63 | 20 28 31 27 73 20 6f 72 |ithmetic| (1's or|
|00003870| 20 32 27 73 20 63 6f 6d | 70 6c 65 6d 65 6e 74 29 | 2's com|plement)|
|00003880| 2e 0a 20 2a 2f 0a 0a 23 | 64 65 66 69 6e 65 20 53 |.. */..#|define S|
|00003890| 4d 41 4c 4c 45 53 54 5f | 49 4e 54 20 20 20 20 20 |MALLEST_|INT |
|000038a0| 20 20 20 20 20 20 20 20 | 20 20 20 28 2d 32 31 34 | | (-214|
|000038b0| 37 34 38 33 36 34 38 29 | 0a 23 64 65 66 69 6e 65 |7483648)|.#define|
|000038c0| 20 53 5f 53 4d 41 4c 4c | 45 53 54 5f 49 4e 54 20 | S_SMALL|EST_INT |
|000038d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 22 32 31 | | "21|
|000038e0| 34 37 34 38 33 36 34 38 | 22 20 20 20 20 20 20 2f |47483648|" /|
|000038f0| 2a 20 6e 6f 74 65 3a 20 | 6e 6f 20 27 2d 27 20 73 |* note: |no '-' s|
|00003900| 69 67 6e 20 2a 2f 0a 23 | 64 65 66 69 6e 65 20 53 |ign */.#|define S|
|00003910| 5f 53 4d 41 4c 4c 45 53 | 54 5f 49 4e 54 5f 4c 45 |_SMALLES|T_INT_LE|
|00003920| 4e 20 20 20 20 20 20 20 | 20 20 20 31 30 0a 0a 2f |N | 10../|
|00003930| 2a 0a 20 2a 20 44 65 66 | 69 6e 65 20 4c 4f 4e 47 |*. * Def|ine LONG|
|00003940| 5f 49 53 5f 42 49 47 47 | 45 52 20 69 73 20 73 69 |_IS_BIGG|ER is si|
|00003950| 7a 65 6f 66 28 20 6c 6f | 6e 67 20 29 20 21 3d 20 |zeof( lo|ng ) != |
|00003960| 73 69 7a 65 6f 66 28 20 | 69 6e 74 20 29 0a 20 2a |sizeof( |int ). *|
|00003970| 2f 0a 23 75 6e 64 65 66 | 20 4c 4f 4e 47 5f 49 53 |/.#undef| LONG_IS|
|00003980| 5f 42 49 47 47 45 52 0a | 0a 63 6f 6e 73 74 61 6e |_BIGGER.|.constan|
|00003990| 74 73 20 64 65 70 65 6e | 64 20 6f 6e 20 74 68 65 |ts depen|d on the|
|000039a0| 20 77 6f 72 64 20 73 69 | 7a 65 20 6f 66 20 74 68 | word si|ze of th|
|000039b0| 65 20 43 50 55 20 61 6e | 64 20 74 68 65 0a 20 2a |e CPU an|d the. *|
|000039c0| 20 74 79 70 65 20 6f 66 | 20 61 72 69 74 68 6d 65 | type of| arithme|
|000039d0| 74 69 63 20 28 31 27 73 | 20 6f 72 20 32 27 73 20 |tic (1's| or 2's |
|000039e0| 63 6f 6d 70 6c 65 6d 65 | 6e 74 29 2e 0a 20 2a 2f |compleme|nt).. */|
|000039f0| 0a 0a 23 64 65 66 69 6e | 65 20 53 4d 41 4c 4c 45 |..#defin|e SMALLE|
|00003a00| 2e 2f 43 6f 6e 66 69 67 | 2f 62 73 64 34 33 2d 63 |./Config|/bsd43-c|
|00003a10| 6f 6e 66 69 67 2e 68 00 | 00 00 00 00 00 00 00 00 |onfig.h.|........|
|00003a20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003a30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003a60| 00 00 00 00 20 20 20 36 | 30 30 20 00 20 32 33 34 |.... 6|00 . 234|
|00003a70| 32 31 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 |21 . | 0 . |
|00003a80| 20 20 20 34 35 37 34 20 | 20 35 33 31 31 35 36 34 | 4574 | 5311564|
|00003a90| 35 30 30 20 20 31 30 30 | 31 37 00 20 00 00 00 00 |500 100|17. ....|
|00003aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c00| 2f 2a 0a 20 2a 20 28 63 | 29 20 43 6f 70 79 72 69 |/*. * (c|) Copyri|
|00003c10| 67 68 74 20 31 39 39 32 | 20 62 79 20 50 61 6e 61 |ght 1992| by Pana|
|00003c20| 67 69 6f 74 69 73 20 54 | 73 69 72 69 67 6f 74 69 |giotis T|sirigoti|
|00003c30| 73 0a 20 2a 20 41 6c 6c | 20 72 69 67 68 74 73 20 |s. * All| rights |
|00003c40| 72 65 73 65 72 76 65 64 | 2e 20 20 54 68 65 20 66 |reserved|. The f|
|00003c50| 69 6c 65 20 6e 61 6d 65 | 64 20 43 4f 50 59 52 49 |ile name|d COPYRI|
|00003c60| 47 48 54 20 73 70 65 63 | 69 66 69 65 73 20 74 68 |GHT spec|ifies th|
|00003c70| 65 20 74 65 72 6d 73 20 | 0a 20 2a 20 61 6e 64 20 |e terms |. * and |
|00003c80| 63 6f 6e 64 69 74 69 6f | 6e 73 20 66 6f 72 20 72 |conditio|ns for r|
|00003c90| 65 64 69 73 74 72 69 62 | 75 74 69 6f 6e 2e 0a 20 |edistrib|ution.. |
|00003ca0| 2a 2f 0a 0a 2f 2a 0a 20 | 2a 20 24 49 64 3a 20 62 |*/../*. |* $Id: b|
|00003cb0| 73 64 34 33 2d 63 6f 6e | 66 69 67 2e 68 2c 76 20 |sd43-con|fig.h,v |
|00003cc0| 37 2e 32 20 31 39 39 32 | 2f 30 36 2f 32 32 20 32 |7.2 1992|/06/22 2|
|00003cd0| 31 3a 34 38 3a 30 34 20 | 70 61 6e 6f 73 20 45 78 |1:48:04 |panos Ex|
|00003ce0| 70 20 24 0a 20 2a 2f 0a | 0a 2f 2a 0a 20 2a 20 42 |p $. */.|./*. * B|
|00003cf0| 53 44 20 34 2e 33 20 63 | 6f 6e 66 69 67 75 72 61 |SD 4.3 c|onfigura|
|00003d00| 74 69 6f 6e 20 66 69 6c | 65 0a 20 2a 2f 0a 0a 2f |tion fil|e. */../|
|00003d10| 2a 0a 20 2a 20 4e 4f 54 | 45 3a 20 41 4c 4c 20 42 |*. * NOT|E: ALL B|
|00003d20| 49 4e 41 52 59 20 46 4c | 41 47 53 20 4d 55 53 54 |INARY FL|AGS MUST|
|00003d30| 20 42 45 20 45 49 54 48 | 45 52 20 64 65 66 69 6e | BE EITH|ER defin|
|00003d40| 65 27 64 20 4f 52 20 75 | 6e 64 65 66 27 65 64 2e |e'd OR u|ndef'ed.|
|00003d50| 0a 20 2a 20 20 20 09 09 | 44 4f 20 4e 4f 54 20 53 |. * ..|DO NOT S|
|00003d60| 4b 49 50 20 46 4c 41 47 | 53 3b 20 75 6e 64 65 66 |KIP FLAG|S; undef|
|00003d70| 20 54 48 45 4d 0a 20 2a | 2f 0a 0a 0a 2f 2a 2a 2a | THEM. *|/.../***|
|00003d80| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003d90| 2a 2a 2a 2a 2a 20 4d 45 | 4d 4f 52 59 20 4d 41 50 |***** ME|MORY MAP|
|00003da0| 50 49 4e 47 20 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |PING ***|********|
|00003db0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003dc0| 2a 2f 0a 0a 2f 2a 0a 20 | 2a 20 45 69 74 68 65 72 |*/../*. |* Either|
|00003dd0| 20 64 65 66 69 6e 65 20 | 6f 72 20 75 6e 64 65 66 | define |or undef|
|00003de0| 20 4d 45 4d 4f 52 59 5f | 4d 41 50 0a 20 2a 20 49 | MEMORY_|MAP. * I|
|00003df0| 66 20 79 6f 75 20 64 65 | 66 69 6e 65 20 69 74 2c |f you de|fine it,|
|00003e00| 20 79 6f 75 20 6d 75 73 | 74 20 61 6c 73 6f 20 64 | you mus|t also d|
|00003e10| 65 66 69 6e 65 20 74 68 | 65 20 6d 65 6d 6f 72 79 |efine th|e memory|
|00003e20| 20 6d 61 70 70 69 6e 67 | 20 69 6e 74 65 72 66 61 | mapping| interfa|
|00003e30| 63 65 0a 20 2a 20 66 75 | 6e 63 74 69 6f 6e 73 3a |ce. * fu|nctions:|
|00003e40| 20 53 49 4f 5f 4d 4d 41 | 50 2c 20 53 49 4f 5f 4d | SIO_MMA|P, SIO_M|
|00003e50| 55 4e 4d 41 50 2c 20 53 | 49 4f 5f 4d 4e 45 45 44 |UNMAP, S|IO_MNEED|
|00003e60| 0a 20 2a 20 53 49 4f 5f | 4d 4e 45 45 44 20 69 73 |. * SIO_|MNEED is|
|00003e70| 20 6e 6f 74 20 6e 65 63 | 65 73 73 61 72 79 3b 20 | not nec|essary; |
|00003e80| 69 66 20 79 6f 75 72 20 | 4f 53 20 64 6f 65 73 20 |if your |OS does |
|00003e90| 6e 6f 74 20 73 75 70 70 | 6f 72 74 20 69 74 0a 20 |not supp|ort it. |
|00003ea0| 2a 20 64 65 66 69 6e 65 | 20 69 74 20 74 6f 20 6e |* define| it to n|
|00003eb0| 6f 74 68 69 6e 67 2e 0a | 20 2a 2f 20 0a 23 75 6e |othing..| */ .#un|
|00003ec0| 64 65 66 20 4d 45 4d 4f | 52 59 5f 4d 41 50 0a 0a |def MEMO|RY_MAP..|
|00003ed0| 2f 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |/*******|********|
|00003ee0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 20 46 49 4e 41 4c 49 |********|* FINALI|
|00003ef0| 5a 41 54 49 4f 4e 20 43 | 4f 44 45 20 2a 2a 2a 2a |ZATION C|ODE ****|
|00003f00| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003f10| 2a 2a 2a 2a 2a 2a 2a 2a | 2f 0a 0a 2f 2a 0a 20 2a |********|/../*. *|
|00003f20| 20 45 69 74 68 65 72 20 | 64 65 66 69 6e 65 20 6f | Either |define o|
|00003f30| 72 20 75 6e 64 65 66 20 | 48 41 53 5f 46 49 4e 41 |r undef |HAS_FINA|
|00003f40| 4c 49 5a 41 54 49 4f 4e | 0a 20 2a 20 49 66 20 79 |LIZATION|. * If y|
|00003f50| 6f 75 20 64 65 66 69 6e | 65 20 69 74 2c 20 79 6f |ou defin|e it, yo|
|00003f60| 75 20 6d 75 73 74 20 64 | 65 66 69 6e 65 20 74 68 |u must d|efine th|
|00003f70| 65 20 6d 61 63 72 6f 73 | 20 53 49 4f 5f 46 49 4e |e macros| SIO_FIN|
|00003f80| 41 4c 49 5a 45 0a 20 2a | 20 61 6e 64 20 53 49 4f |ALIZE. *| and SIO|
|00003f90| 5f 44 45 46 49 4e 45 5f | 46 49 4e 0a 20 2a 20 53 |_DEFINE_|FIN. * S|
|00003fa0| 49 4f 5f 46 49 4e 41 4c | 49 5a 45 20 68 61 73 20 |IO_FINAL|IZE has |
|00003fb0| 61 20 66 75 6e 63 74 69 | 6f 6e 20 61 73 20 61 6e |a functi|on as an|
|00003fc0| 20 61 72 67 75 6d 65 6e | 74 20 61 6e 64 20 69 74 | argumen|t and it|
|00003fd0| 73 20 76 61 6c 75 65 0a | 20 2a 20 69 73 20 61 6e |s value.| * is an|
|00003fe0| 20 65 78 70 72 65 73 73 | 69 6f 6e 20 77 68 6f 73 | express|ion whos|
|00003ff0| 65 20 76 61 6c 75 65 20 | 69 73 20 54 52 55 45 20 |e value |is TRUE |
|00004000| 69 66 20 74 68 65 20 66 | 69 6e 61 6c 69 7a 61 74 |if the f|inalizat|
|00004010| 69 6f 6e 20 66 75 6e 63 | 74 69 6f 6e 0a 20 2a 20 |ion func|tion. * |
|00004020| 77 61 73 20 73 75 63 63 | 65 73 73 66 75 6c 6c 79 |was succ|essfully|
|00004030| 20 69 6e 73 74 61 6c 6c | 65 64 0a 20 2a 20 53 49 | install|ed. * SI|
|00004040| 4f 5f 44 45 46 49 4e 45 | 5f 46 49 4e 20 68 61 73 |O_DEFINE|_FIN has|
|00004050| 20 61 20 66 75 6e 63 74 | 69 6f 6e 20 61 73 20 61 | a funct|ion as a|
|00004060| 6e 20 61 72 67 75 6d 65 | 6e 74 20 61 6e 64 20 63 |n argume|nt and c|
|00004070| 72 65 61 74 65 64 20 61 | 6e 0a 20 2a 20 61 70 70 |reated a|n. * app|
|00004080| 72 6f 70 72 69 61 74 65 | 20 66 75 6e 63 74 69 6f |ropriate| functio|
|00004090| 6e 20 64 65 66 69 6e 69 | 74 69 6f 6e 2e 0a 20 2a |n defini|tion.. *|
|000040a0| 2f 0a 23 75 6e 64 65 66 | 20 48 41 53 5f 46 49 4e |/.#undef| HAS_FIN|
|000040b0| 41 4c 49 5a 41 54 49 4f | 4e 5f 46 55 4e 43 54 49 |ALIZATIO|N_FUNCTI|
|000040c0| 4f 4e 0a 0a 0a 2f 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |ON.../**|********|
|000040d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 20 47 |********|****** G|
|000040e0| 45 4e 45 52 41 4c 20 43 | 4f 4e 53 54 41 4e 54 53 |ENERAL C|ONSTANTS|
|000040f0| 20 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a | *******|********|
|00004100| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2f 0a 0a |********|*****/..|
|00004110| 2f 2a 0a 20 2a 20 44 65 | 66 69 6e 65 20 61 74 20 |/*. * De|fine at |
|00004120| 6d 6f 73 74 20 31 20 6f | 66 20 74 68 65 20 66 6f |most 1 o|f the fo|
|00004130| 6c 6c 6f 77 69 6e 67 20 | 74 77 6f 20 66 6c 61 67 |llowing |two flag|
|00004140| 73 0a 20 2a 2f 0a 23 75 | 6e 64 65 66 20 48 41 53 |s. */.#u|ndef HAS|
|00004150| 5f 4d 45 4d 4f 50 53 0a | 23 64 65 66 69 6e 65 20 |_MEMOPS.|#define |
|00004160| 48 41 53 5f 42 43 4f 50 | 59 0a 0a 2f 2a 0a 20 2a |HAS_BCOP|Y../*. *|
|00004170| 20 44 65 66 69 6e 65 20 | 48 41 53 5f 49 53 41 54 | Define |HAS_ISAT|
|00004180| 54 59 20 69 66 20 74 68 | 65 20 66 75 6e 63 74 69 |TY if th|e functi|
|00004190| 6f 6e 20 69 73 61 74 74 | 79 28 20 66 64 20 29 20 |on isatt|y( fd ) |
|000041a0| 65 78 69 73 74 73 20 69 | 6e 20 74 68 65 20 43 20 |exists i|n the C |
|000041b0| 6c 69 62 72 61 72 79 0a | 20 2a 2f 0a 23 75 6e 64 |library.| */.#und|
|000041c0| 65 66 20 48 41 53 5f 49 | 53 41 54 54 59 0a 23 64 |ef HAS_I|SATTY.#d|
|000041d0| 65 66 69 6e 65 20 42 53 | 44 34 33 5f 54 54 59 0a |efine BS|D43_TTY.|
|000041e0| 0a 2f 2a 0a 20 2a 20 4e | 5f 53 49 4f 5f 44 45 53 |./*. * N|_SIO_DES|
|000041f0| 43 52 49 50 54 4f 52 53 | 20 69 73 20 74 68 65 20 |CRIPTORS| is the |
|00004200| 6d 61 78 69 6d 75 6d 20 | 6e 75 6d 62 65 72 20 6f |maximum |number o|
|00004210| 66 20 66 69 6c 65 20 64 | 65 73 63 72 69 70 74 6f |f file d|escripto|
|00004220| 72 73 0a 20 2a 20 73 75 | 70 70 6f 72 74 65 64 20 |rs. * su|pported |
|00004230| 62 79 20 74 68 65 20 4f | 53 0a 20 2a 0a 20 2a 20 |by the O|S. *. * |
|00004240| 58 58 58 3a 20 54 68 69 | 73 20 68 61 73 20 6e 6f |XXX: Thi|s has no|
|00004250| 74 20 62 65 65 6e 20 74 | 65 73 74 65 64 2e 20 54 |t been t|ested. T|
|00004260| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 66 69 6c |he numbe|r of fil|
|00004270| 65 20 64 65 73 63 72 69 | 70 74 6f 72 73 0a 20 2a |e descri|ptors. *|
|00004280| 09 09 20 20 6d 61 79 20 | 72 65 73 69 64 65 20 61 |.. may |reside a|
|00004290| 74 20 61 20 64 69 66 66 | 65 72 65 6e 74 20 70 6c |t a diff|erent pl|
|000042a0| 61 63 65 20 61 6e 64 20 | 68 61 76 65 20 61 20 64 |ace and |have a d|
|000042b0| 69 66 66 65 72 65 6e 74 | 20 6e 61 6d 65 2e 0a 20 |ifferent| name.. |
|000042c0| 2a 2f 0a 23 69 6e 63 6c | 75 64 65 20 3c 73 79 73 |*/.#incl|ude <sys|
|000042d0| 2f 70 61 72 61 6d 2e 68 | 3e 0a 23 64 65 66 69 6e |/param.h|>.#defin|
|000042e0| 65 20 4e 5f 53 49 4f 5f | 44 45 53 43 52 49 50 54 |e N_SIO_|DESCRIPT|
|000042f0| 4f 52 53 09 09 09 4e 4f | 46 49 4c 45 0a 0a 2f 2a |ORS...NO|FILE../*|
|00004300| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004310| 2a 2a 2a 2a 2a 2a 2a 20 | 53 50 52 49 4e 54 20 43 |******* |SPRINT C|
|00004320| 4f 4e 53 54 41 4e 54 53 | 20 2a 2a 2a 2a 2a 2a 2a |ONSTANTS| *******|
|00004330| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004340| 2a 2a 2a 2a 2a 2f 0a 0a | 2f 2a 0a 20 2a 20 53 4d |*****/..|/*. * SM|
|00004350| 41 4c 4c 45 53 54 5f 49 | 4e 54 3a 20 20 20 20 20 |ALLEST_I|NT: |
|00004360| 73 6d 61 6c 6c 65 73 74 | 20 69 6e 74 65 67 65 72 |smallest| integer|
|00004370| 20 74 68 65 20 6d 61 63 | 68 69 6e 65 20 63 61 6e | the mac|hine can|
|00004380| 20 72 65 70 72 65 73 65 | 6e 74 0a 20 2a 20 53 5f | represe|nt. * S_|
|00004390| 53 4d 41 4c 4c 45 53 54 | 5f 49 4e 54 3a 20 20 20 |SMALLEST|_INT: |
|000043a0| 74 68 65 20 73 6d 61 6c | 6c 65 73 74 20 69 6e 74 |the smal|lest int|
|000043b0| 65 67 65 72 20 61 73 20 | 61 20 73 74 72 69 6e 67 |eger as |a string|
|000043c0| 0a 20 2a 20 53 5f 53 4d | 41 4c 4c 45 53 54 5f 49 |. * S_SM|ALLEST_I|
|000043d0| 4e 54 5f 4c 45 4e 3a 20 | 6c 65 6e 67 74 68 20 6f |NT_LEN: |length o|
|000043e0| 66 20 73 74 72 69 6e 67 | 20 63 6f 6e 74 61 69 6e |f string| contain|
|000043f0| 69 6e 67 20 73 6d 61 6c | 6c 65 73 74 20 69 6e 74 |ing smal|lest int|
|00004400| 65 67 65 72 0a 20 2a 0a | 20 2a 20 54 68 65 73 65 |eger. *.| * These|
|00004410| 20 63 6f 6e 73 74 61 6e | 74 73 20 64 65 70 65 6e | constan|ts depen|
|00004420| 64 20 6f 6e 20 74 68 65 | 20 77 6f 72 64 20 73 69 |d on the| word si|
|00004430| 7a 65 20 6f 66 20 74 68 | 65 20 43 50 55 20 61 6e |ze of th|e CPU an|
|00004440| 64 20 74 68 65 0a 20 2a | 20 74 79 70 65 20 6f 66 |d the. *| type of|
|00004450| 20 61 72 69 74 68 6d 65 | 74 69 63 20 28 31 27 73 | arithme|tic (1's|
|00004460| 20 6f 72 20 32 27 73 20 | 63 6f 6d 70 6c 65 6d 65 | or 2's |compleme|
|00004470| 6e 74 29 2e 0a 20 2a 2f | 0a 0a 23 64 65 66 69 6e |nt).. */|..#defin|
|00004480| 65 20 53 4d 41 4c 4c 45 | 53 54 5f 49 4e 54 20 20 |e SMALLE|ST_INT |
|00004490| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 28 2d | | (-|
|000044a0| 32 31 34 37 34 38 33 36 | 34 38 29 0a 23 64 65 66 |21474836|48).#def|
|000044b0| 69 6e 65 20 53 5f 53 4d | 41 4c 4c 45 53 54 5f 49 |ine S_SM|ALLEST_I|
|000044c0| 4e 54 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |NT | |
|000044d0| 22 32 31 34 37 34 38 33 | 36 34 38 22 20 20 20 20 |"2147483|648" |
|000044e0| 20 20 2f 2a 20 6e 6f 74 | 65 3a 20 6e 6f 20 27 2d | /* not|e: no '-|
|000044f0| 27 20 73 69 67 6e 20 2a | 2f 0a 23 64 65 66 69 6e |' sign *|/.#defin|
|00004500| 65 20 53 5f 53 4d 41 4c | 4c 45 53 54 5f 49 4e 54 |e S_SMAL|LEST_INT|
|00004510| 5f 4c 45 4e 20 20 20 20 | 20 20 20 20 20 20 31 30 |_LEN | 10|
|00004520| 0a 0a 2f 2a 0a 20 2a 20 | 44 65 66 69 6e 65 20 4c |../*. * |Define L|
|00004530| 4f 4e 47 5f 49 53 5f 42 | 49 47 47 45 52 20 69 73 |ONG_IS_B|IGGER is|
|00004540| 20 73 69 7a 65 6f 66 28 | 20 6c 6f 6e 67 20 29 20 | sizeof(| long ) |
|00004550| 21 3d 20 73 69 7a 65 6f | 66 28 20 69 6e 74 20 29 |!= sizeo|f( int )|
|00004560| 0a 20 2a 2f 0a 23 75 6e | 64 65 66 20 4c 4f 4e 47 |. */.#un|def LONG|
|00004570| 5f 49 53 5f 42 49 47 47 | 45 52 0a 0a 20 2a 20 44 |_IS_BIGG|ER.. * D|
|00004580| 65 66 69 6e 65 20 48 41 | 53 5f 49 53 41 54 54 59 |efine HA|S_ISATTY|
|00004590| 20 69 66 20 74 68 65 20 | 66 75 6e 63 74 69 6f 6e | if the |function|
|000045a0| 20 69 73 61 74 74 79 28 | 20 66 64 20 29 20 65 78 | isatty(| fd ) ex|
|000045b0| 69 73 74 73 20 69 6e 20 | 74 68 65 20 43 20 6c 69 |ists in |the C li|
|000045c0| 62 72 61 72 79 0a 20 2a | 2f 0a 23 75 6e 64 65 66 |brary. *|/.#undef|
|000045d0| 20 48 41 53 5f 49 53 41 | 54 54 59 0a 23 64 65 66 | HAS_ISA|TTY.#def|
|000045e0| 69 6e 65 20 53 59 53 56 | 5f 54 54 59 0a 0a 2f 2a |ine SYSV|_TTY../*|
|000045f0| 0a 20 2a 20 4e 5f 53 49 | 4f 5f 44 45 53 43 52 49 |. * N_SI|O_DESCRI|
|00004600| 2e 2f 73 75 69 74 65 2f | 00 00 00 00 00 00 00 00 |./suite/|........|
|00004610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004660| 00 00 00 00 20 20 20 37 | 30 30 20 00 20 32 33 34 |.... 7|00 . 234|
|00004670| 32 31 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 |21 . | 0 . |
|00004680| 20 20 20 20 20 20 30 20 | 20 35 33 31 31 35 36 34 | 0 | 5311564|
|00004690| 35 30 32 20 20 20 35 33 | 31 31 00 20 00 00 00 00 |502 53|11. ....|
|000046a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000046b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000046c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000046d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000046e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000046f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004700| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004800| 2e 2f 73 75 69 74 65 2f | 4d 61 6b 65 66 69 6c 65 |./suite/|Makefile|
|00004810| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004860| 00 00 00 00 20 20 20 36 | 30 30 20 00 20 32 33 34 |.... 6|00 . 234|
|00004870| 32 31 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 |21 . | 0 . |
|00004880| 20 20 20 34 34 36 36 20 | 20 35 33 31 31 35 36 34 | 4466 | 5311564|
|00004890| 35 30 31 20 20 20 37 30 | 35 31 00 20 00 00 00 00 |501 70|51. ....|
|000048a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004900| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004a00| 23 20 28 63 29 20 43 6f | 70 79 72 69 67 68 74 20 |# (c) Co|pyright |
|00004a10| 31 39 39 32 20 62 79 20 | 50 61 6e 61 67 69 6f 74 |1992 by |Panagiot|
|00004a20| 69 73 20 54 73 69 72 69 | 67 6f 74 69 73 0a 23 20 |is Tsiri|gotis.# |
|00004a30| 41 6c 6c 20 72 69 67 68 | 74 73 20 72 65 73 65 72 |All righ|ts reser|
|00004a40| 76 65 64 2e 20 20 54 68 | 65 20 66 69 6c 65 20 6e |ved. Th|e file n|
|00004a50| 61 6d 65 64 20 43 4f 50 | 59 52 49 47 48 54 20 73 |amed COP|YRIGHT s|
|00004a60| 70 65 63 69 66 69 65 73 | 20 74 68 65 20 74 65 72 |pecifies| the ter|
|00004a70| 6d 73 20 0a 23 20 61 6e | 64 20 63 6f 6e 64 69 74 |ms .# an|d condit|
|00004a80| 69 6f 6e 73 20 66 6f 72 | 20 72 65 64 69 73 74 72 |ions for| redistr|
|00004a90| 69 62 75 74 69 6f 6e 2e | 0a 0a 23 20 24 49 64 3a |ibution.|..# $Id:|
|00004aa0| 20 4d 61 6b 65 66 69 6c | 65 2c 76 20 37 2e 33 20 | Makefil|e,v 7.3 |
|00004ab0| 31 39 39 32 2f 30 36 2f | 32 38 20 32 33 3a 32 36 |1992/06/|28 23:26|
|00004ac0| 3a 35 34 20 70 61 6e 6f | 73 20 45 78 70 20 24 0a |:54 pano|s Exp $.|
|00004ad0| 0a 43 43 3d 63 63 20 2d | 49 2e 2e 0a 23 0a 23 20 |.CC=cc -|I...#.# |
|00004ae0| 4e 4f 54 45 3a 20 57 68 | 65 6e 20 75 73 69 6e 67 |NOTE: Wh|en using|
|00004af0| 20 74 68 65 20 74 65 73 | 74 20 73 63 72 69 70 74 | the tes|t script|
|00004b00| 73 2c 20 43 4c 46 41 47 | 53 20 69 73 20 70 72 6f |s, CLFAG|S is pro|
|00004b10| 76 69 64 65 64 20 61 73 | 20 61 6e 0a 23 09 09 20 |vided as| an.#.. |
|00004b20| 20 61 72 67 75 6d 65 6e | 74 20 74 6f 20 6d 61 6b | argumen|t to mak|
|00004b30| 65 2c 20 74 68 65 20 73 | 65 74 74 69 6e 67 20 6f |e, the s|etting o|
|00004b40| 66 20 69 74 20 68 65 72 | 65 20 68 61 73 20 6e 6f |f it her|e has no|
|00004b50| 20 65 66 66 65 63 74 2e | 0a 23 0a 43 46 4c 41 47 | effect.|.#.CFLAG|
|00004b60| 53 3d 2d 67 0a 4c 49 42 | 4f 42 4a 53 3d 2e 2e 2f |S=-g.LIB|OBJS=../|
|00004b70| 6c 69 62 73 69 6f 2e 61 | 0a 23 20 54 68 65 20 66 |libsio.a|.# The f|
|00004b80| 6f 6c 6c 6f 77 69 6e 67 | 20 4c 44 46 4c 41 47 53 |ollowing| LDFLAGS|
|00004b90| 20 61 72 65 20 74 68 65 | 20 64 65 66 61 75 6c 74 | are the| default|
|00004ba0| 20 66 6c 61 67 73 2e 0a | 23 4c 44 46 4c 41 47 53 | flags..|#LDFLAGS|
|00004bb0| 3d 2d 42 73 74 61 74 69 | 63 20 2d 6c 6d 0a 0a 44 |=-Bstati|c -lm..D|
|00004bc0| 49 53 54 52 49 42 55 54 | 49 4f 4e 5f 46 49 4c 45 |ISTRIBUT|ION_FILE|
|00004bd0| 53 3d 63 6f 70 79 74 65 | 73 74 2e 63 20 65 78 61 |S=copyte|st.c exa|
|00004be0| 6d 70 6c 65 2e 63 20 70 | 72 69 6e 74 2e 63 20 74 |mple.c p|rint.c t|
|00004bf0| 69 65 74 65 73 74 2e 63 | 20 62 75 66 74 65 73 74 |ietest.c| buftest|
|00004c00| 2e 63 20 66 64 74 65 73 | 74 2e 63 20 74 65 73 74 |.c fdtes|t.c test|
|00004c10| 65 72 20 73 70 72 69 6e | 74 5f 74 65 73 74 20 74 |er sprin|t_test t|
|00004c20| 65 73 74 6c 69 62 0a 0a | 41 4c 4c 3d 53 72 65 61 |estlib..|ALL=Srea|
|00004c30| 64 20 53 77 72 69 74 65 | 20 53 70 75 74 63 68 61 |d Swrite| Sputcha|
|00004c40| 72 20 53 67 65 74 63 68 | 61 72 20 53 72 64 6c 69 |r Sgetch|ar Srdli|
|00004c50| 6e 65 20 5c 0a 09 20 53 | 67 65 74 63 20 53 70 75 |ne \.. S|getc Spu|
|00004c60| 74 63 20 53 66 65 74 63 | 68 20 53 66 6c 75 73 68 |tc Sfetc|h Sflush|
|00004c70| 20 53 75 6e 64 6f 20 73 | 77 69 74 63 68 20 5c 0a | Sundo s|witch \.|
|00004c80| 09 20 53 70 72 69 6e 74 | 20 62 75 66 74 65 73 74 |. Sprint| buftest|
|00004c90| 20 74 69 65 74 65 73 74 | 20 73 77 69 74 63 68 32 | tietest| switch2|
|00004ca0| 20 65 78 61 6d 70 6c 65 | 20 66 64 74 65 73 74 20 | example| fdtest |
|00004cb0| 65 76 74 65 73 74 0a 0a | 65 76 74 65 73 74 3a 20 |evtest..|evtest: |
|00004cc0| 65 76 74 65 73 74 2e 63 | 20 24 28 4c 49 42 4f 42 |evtest.c| $(LIBOB|
|00004cd0| 4a 53 29 0a 09 24 28 43 | 43 29 20 24 28 43 46 4c |JS)..$(C|C) $(CFL|
|00004ce0| 41 47 53 29 20 2d 6f 20 | 24 40 20 65 76 74 65 73 |AGS) -o |$@ evtes|
|00004cf0| 74 2e 63 20 24 28 4c 49 | 42 4f 42 4a 53 29 20 24 |t.c $(LI|BOBJS) $|
|00004d00| 28 4c 44 46 4c 41 47 53 | 29 0a 0a 66 64 74 65 73 |(LDFLAGS|)..fdtes|
|00004d10| 74 3a 20 66 64 74 65 73 | 74 2e 63 20 24 28 4c 49 |t: fdtes|t.c $(LI|
|00004d20| 42 4f 42 4a 53 29 0a 09 | 24 28 43 43 29 20 24 28 |BOBJS)..|$(CC) $(|
|00004d30| 43 46 4c 41 47 53 29 20 | 2d 6f 20 24 40 20 66 64 |CFLAGS) |-o $@ fd|
|00004d40| 74 65 73 74 2e 63 20 24 | 28 4c 49 42 4f 42 4a 53 |test.c $|(LIBOBJS|
|00004d50| 29 20 24 28 4c 44 46 4c | 41 47 53 29 0a 0a 62 75 |) $(LDFL|AGS)..bu|
|00004d60| 66 74 65 73 74 3a 20 62 | 75 66 74 65 73 74 2e 63 |ftest: b|uftest.c|
|00004d70| 20 24 28 4c 49 42 4f 42 | 4a 53 29 0a 09 24 28 43 | $(LIBOB|JS)..$(C|
|00004d80| 43 29 20 24 28 43 46 4c | 41 47 53 29 20 2d 6f 20 |C) $(CFL|AGS) -o |
|00004d90| 24 40 20 62 75 66 74 65 | 73 74 2e 63 20 24 28 4c |$@ bufte|st.c $(L|
|00004da0| 49 42 4f 42 4a 53 29 20 | 24 28 4c 44 46 4c 41 47 |IBOBJS) |$(LDFLAG|
|00004db0| 53 29 0a 0a 53 70 72 69 | 6e 74 3a 20 70 72 69 6e |S)..Spri|nt: prin|
|00004dc0| 74 2e 63 20 24 28 4c 49 | 42 4f 42 4a 53 29 0a 09 |t.c $(LI|BOBJS)..|
|00004dd0| 24 28 43 43 29 20 24 28 | 43 46 4c 41 47 53 29 20 |$(CC) $(|CFLAGS) |
|00004de0| 2d 6f 20 24 40 20 70 72 | 69 6e 74 2e 63 20 24 28 |-o $@ pr|int.c $(|
|00004df0| 4c 49 42 4f 42 4a 53 29 | 20 24 28 4c 44 46 4c 41 |LIBOBJS)| $(LDFLA|
|00004e00| 47 53 29 0a 0a 53 70 75 | 74 63 68 61 72 3a 20 63 |GS)..Spu|tchar: c|
|00004e10| 6f 70 79 74 65 73 74 2e | 63 20 24 28 4c 49 42 4f |opytest.|c $(LIBO|
|00004e20| 42 4a 53 29 0a 09 24 28 | 43 43 29 20 24 28 43 46 |BJS)..$(|CC) $(CF|
|00004e30| 4c 41 47 53 29 20 2d 6f | 20 24 40 20 63 6f 70 79 |LAGS) -o| $@ copy|
|00004e40| 74 65 73 74 2e 63 20 24 | 28 4c 49 42 4f 42 4a 53 |test.c $|(LIBOBJS|
|00004e50| 29 20 24 28 4c 44 46 4c | 41 47 53 29 0a 0a 53 67 |) $(LDFL|AGS)..Sg|
|00004e60| 65 74 63 68 61 72 3a 20 | 63 6f 70 79 74 65 73 74 |etchar: |copytest|
|00004e70| 2e 63 20 24 28 4c 49 42 | 4f 42 4a 53 29 0a 09 24 |.c $(LIB|OBJS)..$|
|00004e80| 28 43 43 29 20 24 28 43 | 46 4c 41 47 53 29 20 2d |(CC) $(C|FLAGS) -|
|00004e90| 6f 20 24 40 20 63 6f 70 | 79 74 65 73 74 2e 63 20 |o $@ cop|ytest.c |
|00004ea0| 24 28 4c 49 42 4f 42 4a | 53 29 20 24 28 4c 44 46 |$(LIBOBJ|S) $(LDF|
|00004eb0| 4c 41 47 53 29 0a 0a 53 | 72 64 6c 69 6e 65 3a 20 |LAGS)..S|rdline: |
|00004ec0| 63 6f 70 79 74 65 73 74 | 2e 63 20 24 28 4c 49 42 |copytest|.c $(LIB|
|00004ed0| 4f 42 4a 53 29 0a 09 24 | 28 43 43 29 20 24 28 43 |OBJS)..$|(CC) $(C|
|00004ee0| 46 4c 41 47 53 29 20 2d | 6f 20 24 40 20 63 6f 70 |FLAGS) -|o $@ cop|
|00004ef0| 79 74 65 73 74 2e 63 20 | 24 28 4c 49 42 4f 42 4a |ytest.c |$(LIBOBJ|
|00004f00| 53 29 0a 0a 53 72 65 61 | 64 3a 20 63 6f 70 79 74 |S)..Srea|d: copyt|
|00004f10| 65 73 74 2e 63 20 24 28 | 4c 49 42 4f 42 4a 53 29 |est.c $(|LIBOBJS)|
|00004f20| 0a 09 24 28 43 43 29 20 | 24 28 43 46 4c 41 47 53 |..$(CC) |$(CFLAGS|
|00004f30| 29 20 2d 6f 20 24 40 20 | 63 6f 70 79 74 65 73 74 |) -o $@ |copytest|
|00004f40| 2e 63 20 24 28 4c 49 42 | 4f 42 4a 53 29 20 24 28 |.c $(LIB|OBJS) $(|
|00004f50| 4c 44 46 4c 41 47 53 29 | 0a 0a 53 77 72 69 74 65 |LDFLAGS)|..Swrite|
|00004f60| 3a 20 63 6f 70 79 74 65 | 73 74 2e 63 20 24 28 4c |: copyte|st.c $(L|
|00004f70| 49 42 4f 42 4a 53 29 0a | 09 24 28 43 43 29 20 24 |IBOBJS).|.$(CC) $|
|00004f80| 28 43 46 4c 41 47 53 29 | 20 2d 6f 20 24 40 20 63 |(CFLAGS)| -o $@ c|
|00004f90| 6f 70 79 74 65 73 74 2e | 63 20 24 28 4c 49 42 4f |opytest.|c $(LIBO|
|00004fa0| 42 4a 53 29 20 24 28 4c | 44 46 4c 41 47 53 29 0a |BJS) $(L|DFLAGS).|
|00004fb0| 0a 53 67 65 74 63 3a 20 | 63 6f 70 79 74 65 73 74 |.Sgetc: |copytest|
|00004fc0| 2e 63 20 24 28 4c 49 42 | 4f 42 4a 53 29 0a 09 24 |.c $(LIB|OBJS)..$|
|00004fd0| 28 43 43 29 20 24 28 43 | 46 4c 41 47 53 29 20 2d |(CC) $(C|FLAGS) -|
|00004fe0| 6f 20 24 40 20 63 6f 70 | 79 74 65 73 74 2e 63 20 |o $@ cop|ytest.c |
|00004ff0| 24 28 4c 49 42 4f 42 4a | 53 29 20 24 28 4c 44 46 |$(LIBOBJ|S) $(LDF|
|00005000| 4c 41 47 53 29 0a 0a 53 | 70 75 74 63 3a 20 63 6f |LAGS)..S|putc: co|
|00005010| 70 79 74 65 73 74 2e 63 | 20 24 28 4c 49 42 4f 42 |pytest.c| $(LIBOB|
|00005020| 4a 53 29 0a 09 24 28 43 | 43 29 20 24 28 43 46 4c |JS)..$(C|C) $(CFL|
|00005030| 41 47 53 29 20 2d 6f 20 | 24 40 20 63 6f 70 79 74 |AGS) -o |$@ copyt|
|00005040| 65 73 74 2e 63 20 24 28 | 4c 49 42 4f 42 4a 53 29 |est.c $(|LIBOBJS)|
|00005050| 20 24 28 4c 44 46 4c 41 | 47 53 29 0a 0a 53 66 65 | $(LDFLA|GS)..Sfe|
|00005060| 74 63 68 3a 20 63 6f 70 | 79 74 65 73 74 2e 63 20 |tch: cop|ytest.c |
|00005070| 24 28 4c 49 42 4f 42 4a | 53 29 0a 09 24 28 43 43 |$(LIBOBJ|S)..$(CC|
|00005080| 29 20 24 28 43 46 4c 41 | 47 53 29 20 2d 6f 20 24 |) $(CFLA|GS) -o $|
|00005090| 40 20 63 6f 70 79 74 65 | 73 74 2e 63 20 24 28 4c |@ copyte|st.c $(L|
|000050a0| 49 42 4f 42 4a 53 29 20 | 24 28 4c 44 46 4c 41 47 |IBOBJS) |$(LDFLAG|
|000050b0| 53 29 0a 0a 53 66 6c 75 | 73 68 3a 20 63 6f 70 79 |S)..Sflu|sh: copy|
|000050c0| 74 65 73 74 2e 63 20 24 | 28 4c 49 42 4f 42 4a 53 |test.c $|(LIBOBJS|
|000050d0| 29 0a 09 24 28 43 43 29 | 20 24 28 43 46 4c 41 47 |)..$(CC)| $(CFLAG|
|000050e0| 53 29 20 2d 6f 20 24 40 | 20 63 6f 70 79 74 65 73 |S) -o $@| copytes|
|000050f0| 74 2e 63 20 24 28 4c 49 | 42 4f 42 4a 53 29 20 24 |t.c $(LI|BOBJS) $|
|00005100| 28 4c 44 46 4c 41 47 53 | 29 0a 0a 53 75 6e 64 6f |(LDFLAGS|)..Sundo|
|00005110| 3a 20 63 6f 70 79 74 65 | 73 74 2e 63 20 24 28 4c |: copyte|st.c $(L|
|00005120| 49 42 4f 42 4a 53 29 0a | 09 24 28 43 43 29 20 24 |IBOBJS).|.$(CC) $|
|00005130| 28 43 46 4c 41 47 53 29 | 20 2d 6f 20 24 40 20 63 |(CFLAGS)| -o $@ c|
|00005140| 6f 70 79 74 65 73 74 2e | 63 20 24 28 4c 49 42 4f |opytest.|c $(LIBO|
|00005150| 42 4a 53 29 20 24 28 4c | 44 46 4c 41 47 53 29 0a |BJS) $(L|DFLAGS).|
|00005160| 0a 73 77 69 74 63 68 3a | 20 63 6f 70 79 74 65 73 |.switch:| copytes|
|00005170| 74 2e 63 20 24 28 4c 49 | 42 4f 42 4a 53 29 0a 09 |t.c $(LI|BOBJS)..|
|00005180| 24 28 43 43 29 20 24 28 | 43 46 4c 41 47 53 29 20 |$(CC) $(|CFLAGS) |
|00005190| 2d 6f 20 24 40 20 63 6f | 70 79 74 65 73 74 2e 63 |-o $@ co|pytest.c|
|000051a0| 20 24 28 4c 49 42 4f 42 | 4a 53 29 20 24 28 4c 44 | $(LIBOB|JS) $(LD|
|000051b0| 46 4c 41 47 53 29 0a 0a | 73 77 69 74 63 68 32 3a |FLAGS)..|switch2:|
|000051c0| 20 63 6f 70 79 74 65 73 | 74 2e 63 20 24 28 4c 49 | copytes|t.c $(LI|
|000051d0| 42 4f 42 4a 53 29 0a 09 | 24 28 43 43 29 20 24 28 |BOBJS)..|$(CC) $(|
|000051e0| 43 46 4c 41 47 53 29 20 | 2d 6f 20 24 40 20 63 6f |CFLAGS) |-o $@ co|
|000051f0| 70 79 74 65 73 74 2e 63 | 20 24 28 4c 49 42 4f 42 |pytest.c| $(LIBOB|
|00005200| 4a 53 29 20 24 28 4c 44 | 46 4c 41 47 53 29 0a 0a |JS) $(LD|FLAGS)..|
|00005210| 74 69 65 74 65 73 74 3a | 20 74 69 65 74 65 73 74 |tietest:| tietest|
|00005220| 2e 63 20 24 28 4c 49 42 | 4f 42 4a 53 29 0a 09 24 |.c $(LIB|OBJS)..$|
|00005230| 28 43 43 29 20 24 28 43 | 46 4c 41 47 53 29 20 2d |(CC) $(C|FLAGS) -|
|00005240| 6f 20 24 40 20 74 69 65 | 74 65 73 74 2e 63 20 24 |o $@ tie|test.c $|
|00005250| 28 4c 49 42 4f 42 4a 53 | 29 20 24 28 4c 44 46 4c |(LIBOBJS|) $(LDFL|
|00005260| 41 47 53 29 0a 0a 65 78 | 61 6d 70 6c 65 3a 20 65 |AGS)..ex|ample: e|
|00005270| 78 61 6d 70 6c 65 2e 63 | 20 24 28 4c 49 42 4f 42 |xample.c| $(LIBOB|
|00005280| 4a 53 29 0a 09 24 28 43 | 43 29 20 24 28 43 46 4c |JS)..$(C|C) $(CFL|
|00005290| 41 47 53 29 20 2d 6f 20 | 24 40 20 65 78 61 6d 70 |AGS) -o |$@ examp|
|000052a0| 6c 65 2e 63 20 24 28 4c | 49 42 4f 42 4a 53 29 20 |le.c $(L|IBOBJS) |
|000052b0| 24 28 4c 44 46 4c 41 47 | 53 29 0a 0a 63 6c 65 61 |$(LDFLAG|S)..clea|
|000052c0| 6e 3a 0a 09 72 6d 20 2d | 66 20 24 28 41 4c 4c 29 |n:..rm -|f $(ALL)|
|000052d0| 0a 0a 63 68 65 63 6b 6f | 75 74 3a 20 24 28 44 49 |..checko|ut: $(DI|
|000052e0| 53 54 52 49 42 55 54 49 | 4f 4e 5f 46 49 4c 45 53 |STRIBUTI|ON_FILES|
|000052f0| 29 0a 0a 24 28 44 49 53 | 54 52 49 42 55 54 49 4f |)..$(DIS|TRIBUTIO|
|00005300| 4e 5f 46 49 4c 45 53 29 | 3a 0a 09 63 6f 20 24 40 |N_FILES)|:..co $@|
|00005310| 0a 0a 64 69 73 74 3a 0a | 09 2d 63 6f 20 2d 71 20 |..dist:.|.-co -q |
|00005320| 24 28 44 49 53 54 52 49 | 42 55 54 49 4f 4e 5f 46 |$(DISTRI|BUTION_F|
|00005330| 49 4c 45 53 29 0a 65 66 | 69 6e 65 20 4c 4f 4e 47 |ILES).ef|ine LONG|
|00005340| 5f 49 53 5f 42 49 47 47 | 45 52 20 69 73 20 73 69 |_IS_BIGG|ER is si|
|00005350| 7a 65 6f 66 28 20 6c 6f | 6e 67 20 29 20 21 3d 20 |zeof( lo|ng ) != |
|00005360| 73 69 7a 65 6f 66 28 20 | 69 6e 74 20 29 0a 20 2a |sizeof( |int ). *|
|00005370| 2f 0a 23 75 6e 64 65 66 | 20 4c 4f 4e 47 5f 49 53 |/.#undef| LONG_IS|
|00005380| 5f 42 49 47 47 45 52 0a | 0a 63 6f 6e 73 74 61 6e |_BIGGER.|.constan|
|00005390| 74 73 20 64 65 70 65 6e | 64 20 6f 6e 20 74 68 65 |ts depen|d on the|
|000053a0| 20 77 6f 72 64 20 73 69 | 7a 65 20 6f 66 20 74 68 | word si|ze of th|
|000053b0| 65 20 43 50 55 20 61 6e | 64 20 74 68 65 0a 20 2a |e CPU an|d the. *|
|000053c0| 20 74 79 70 65 20 6f 66 | 20 61 72 69 74 68 6d 65 | type of| arithme|
|000053d0| 74 69 63 20 28 31 27 73 | 20 6f 72 20 32 27 73 20 |tic (1's| or 2's |
|000053e0| 63 6f 6d 70 6c 65 6d 65 | 6e 74 29 2e 0a 20 2a 2f |compleme|nt).. */|
|000053f0| 0a 0a 23 64 65 66 69 6e | 65 20 53 4d 41 4c 4c 45 |..#defin|e SMALLE|
|00005400| 2e 2f 73 75 69 74 65 2f | 63 6f 70 79 74 65 73 74 |./suite/|copytest|
|00005410| 2e 63 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.c......|........|
|00005420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005460| 00 00 00 00 20 20 20 36 | 30 30 20 00 20 32 33 34 |.... 6|00 . 234|
|00005470| 32 31 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 |21 . | 0 . |
|00005480| 20 20 31 30 32 34 30 20 | 20 35 33 31 31 35 36 34 | 10240 | 5311564|
|00005490| 35 30 31 20 20 20 37 34 | 33 32 00 20 00 00 00 00 |501 74|32. ....|
|000054a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000054b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000054c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000054d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000054e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000054f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005600| 2f 2a 0a 20 2a 20 28 63 | 29 20 43 6f 70 79 72 69 |/*. * (c|) Copyri|
|00005610| 67 68 74 20 31 39 39 32 | 20 62 79 20 50 61 6e 61 |ght 1992| by Pana|
|00005620| 67 69 6f 74 69 73 20 54 | 73 69 72 69 67 6f 74 69 |giotis T|sirigoti|
|00005630| 73 0a 20 2a 20 41 6c 6c | 20 72 69 67 68 74 73 20 |s. * All| rights |
|00005640| 72 65 73 65 72 76 65 64 | 2e 20 20 54 68 65 20 66 |reserved|. The f|
|00005650| 69 6c 65 20 6e 61 6d 65 | 64 20 43 4f 50 59 52 49 |ile name|d COPYRI|
|00005660| 47 48 54 20 73 70 65 63 | 69 66 69 65 73 20 74 68 |GHT spec|ifies th|
|00005670| 65 20 74 65 72 6d 73 20 | 0a 20 2a 20 61 6e 64 20 |e terms |. * and |
|00005680| 63 6f 6e 64 69 74 69 6f | 6e 73 20 66 6f 72 20 72 |conditio|ns for r|
|00005690| 65 64 69 73 74 72 69 62 | 75 74 69 6f 6e 2e 0a 20 |edistrib|ution.. |
|000056a0| 2a 2f 0a 0a 73 74 61 74 | 69 63 20 63 68 61 72 20 |*/..stat|ic char |
|000056b0| 52 43 53 69 64 5b 5d 20 | 3d 20 22 24 49 64 3a 20 |RCSid[] |= "$Id: |
|000056c0| 63 6f 70 79 74 65 73 74 | 2e 63 2c 76 20 37 2e 31 |copytest|.c,v 7.1|
|000056d0| 20 31 39 39 32 2f 30 36 | 2f 30 31 20 32 31 3a 33 | 1992/06|/01 21:3|
|000056e0| 38 3a 35 37 20 70 61 6e | 6f 73 20 45 78 70 20 24 |8:57 pan|os Exp $|
|000056f0| 22 20 3b 0a 0a 23 69 6e | 63 6c 75 64 65 20 22 73 |" ;..#in|clude "s|
|00005700| 69 6f 2e 68 22 0a 23 69 | 6e 63 6c 75 64 65 20 3c |io.h".#i|nclude <|
|00005710| 73 74 64 69 6f 2e 68 3e | 0a 23 69 6e 63 6c 75 64 |stdio.h>|.#includ|
|00005720| 65 20 3c 73 79 73 63 61 | 6c 6c 2e 68 3e 0a 0a 0a |e <sysca|ll.h>...|
|00005730| 2f 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |/*******|********|
|00005740| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005750| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005760| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2f 0a |********|******/.|
|00005770| 0a 23 69 66 64 65 66 20 | 54 45 53 54 5f 53 72 65 |.#ifdef |TEST_Sre|
|00005780| 61 64 0a 0a 23 64 65 66 | 69 6e 65 20 42 55 46 46 |ad..#def|ine BUFF|
|00005790| 45 52 5f 53 49 5a 45 20 | 20 34 30 39 36 0a 0a 6d |ER_SIZE | 4096..m|
|000057a0| 61 69 6e 28 29 0a 7b 0a | 09 63 68 61 72 20 62 75 |ain().{.|.char bu|
|000057b0| 66 5b 20 42 55 46 46 45 | 52 5f 53 49 5a 45 20 5d |f[ BUFFE|R_SIZE ]|
|000057c0| 20 3b 0a 09 69 6e 74 20 | 63 63 20 3b 0a 09 69 6e | ;..int |cc ;..in|
|000057d0| 74 20 6e 62 79 74 65 73 | 20 3b 0a 0a 09 66 6f 72 |t nbytes| ;...for|
|000057e0| 20 28 20 3b 3b 20 29 0a | 09 7b 0a 09 09 6e 62 79 | ( ;; ).|.{...nby|
|000057f0| 74 65 73 20 3d 20 72 61 | 6e 64 6f 6d 28 29 20 26 |tes = ra|ndom() &|
|00005800| 20 28 20 42 55 46 46 45 | 52 5f 53 49 5a 45 20 2d | ( BUFFE|R_SIZE -|
|00005810| 20 31 20 29 20 3b 0a 09 | 09 69 66 20 28 20 6e 62 | 1 ) ;..|.if ( nb|
|00005820| 79 74 65 73 20 3d 3d 20 | 30 20 29 0a 09 09 09 6e |ytes == |0 )....n|
|00005830| 62 79 74 65 73 20 3d 20 | 31 20 3b 0a 09 09 63 63 |bytes = |1 ;...cc|
|00005840| 20 3d 20 53 72 65 61 64 | 28 20 30 2c 20 62 75 66 | = Sread|( 0, buf|
|00005850| 2c 20 6e 62 79 74 65 73 | 20 29 20 3b 0a 09 09 69 |, nbytes| ) ;...i|
|00005860| 66 20 28 20 63 63 20 3d | 3d 20 30 20 29 0a 09 09 |f ( cc =|= 0 )...|
|00005870| 09 62 72 65 61 6b 20 3b | 0a 09 09 69 66 20 28 20 |.break ;|...if ( |
|00005880| 63 63 20 3d 3d 20 53 49 | 4f 5f 45 52 52 20 29 0a |cc == SI|O_ERR ).|
|00005890| 09 09 09 65 78 69 74 28 | 20 31 20 29 20 3b 0a 09 |...exit(| 1 ) ;..|
|000058a0| 09 77 72 69 74 65 28 20 | 31 2c 20 62 75 66 2c 20 |.write( |1, buf, |
|000058b0| 63 63 20 29 20 3b 0a 09 | 7d 0a 09 65 78 69 74 28 |cc ) ;..|}..exit(|
|000058c0| 20 30 20 29 20 3b 0a 7d | 0a 23 65 6e 64 69 66 20 | 0 ) ;.}|.#endif |
|000058d0| 2f 2a 20 54 45 53 54 5f | 53 72 65 61 64 20 2a 2f |/* TEST_|Sread */|
|000058e0| 0a 0a 2f 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |../*****|********|
|000058f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005900| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005910| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005920| 2f 0a 0a 23 69 66 64 65 | 66 20 54 45 53 54 5f 53 |/..#ifde|f TEST_S|
|00005930| 77 72 69 74 65 0a 0a 23 | 64 65 66 69 6e 65 20 42 |write..#|define B|
|00005940| 55 46 46 45 52 5f 53 49 | 5a 45 20 20 34 30 39 36 |UFFER_SI|ZE 4096|
|00005950| 0a 0a 6d 61 69 6e 28 29 | 0a 7b 0a 09 63 68 61 72 |..main()|.{..char|
|00005960| 20 62 75 66 5b 20 42 55 | 46 46 45 52 5f 53 49 5a | buf[ BU|FFER_SIZ|
|00005970| 45 20 5d 20 3b 0a 09 69 | 6e 74 20 63 63 20 3b 0a |E ] ;..i|nt cc ;.|
|00005980| 09 69 6e 74 20 6e 62 79 | 74 65 73 20 3b 0a 0a 09 |.int nby|tes ;...|
|00005990| 66 6f 72 20 28 20 3b 3b | 20 29 0a 09 7b 0a 09 09 |for ( ;;| )..{...|
|000059a0| 6e 62 79 74 65 73 20 3d | 20 72 61 6e 64 6f 6d 28 |nbytes =| random(|
|000059b0| 29 20 26 20 28 20 42 55 | 46 46 45 52 5f 53 49 5a |) & ( BU|FFER_SIZ|
|000059c0| 45 20 2d 20 31 20 29 20 | 3b 0a 09 09 69 66 20 28 |E - 1 ) |;...if (|
|000059d0| 20 6e 62 79 74 65 73 20 | 3d 3d 20 30 20 29 0a 09 | nbytes |== 0 )..|
|000059e0| 09 09 6e 62 79 74 65 73 | 20 3d 20 31 20 3b 0a 09 |..nbytes| = 1 ;..|
|000059f0| 09 63 63 20 3d 20 72 65 | 61 64 28 20 30 2c 20 62 |.cc = re|ad( 0, b|
|00005a00| 75 66 2c 20 6e 62 79 74 | 65 73 20 29 20 3b 0a 09 |uf, nbyt|es ) ;..|
|00005a10| 09 69 66 20 28 20 63 63 | 20 3d 3d 20 30 20 29 0a |.if ( cc| == 0 ).|
|00005a20| 09 09 09 62 72 65 61 6b | 20 3b 0a 09 09 69 66 20 |...break| ;...if |
|00005a30| 28 20 53 77 72 69 74 65 | 28 20 31 2c 20 62 75 66 |( Swrite|( 1, buf|
|00005a40| 2c 20 63 63 20 29 20 21 | 3d 20 63 63 20 29 0a 09 |, cc ) !|= cc )..|
|00005a50| 09 09 65 78 69 74 28 20 | 31 20 29 20 3b 0a 09 7d |..exit( |1 ) ;..}|
|00005a60| 0a 09 65 78 69 74 28 20 | 30 20 29 20 3b 0a 7d 0a |..exit( |0 ) ;.}.|
|00005a70| 23 65 6e 64 69 66 20 2f | 2a 20 54 45 53 54 5f 53 |#endif /|* TEST_S|
|00005a80| 77 72 69 74 65 20 2a 2f | 0a 0a 2f 2a 2a 2a 2a 2a |write */|../*****|
|00005a90| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005aa0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005ab0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005ac0| 2a 2a 2a 2a 2a 2a 2a 2a | 2f 0a 0a 23 69 66 64 65 |********|/..#ifde|
|00005ad0| 66 20 54 45 53 54 5f 53 | 72 64 6c 69 6e 65 0a 0a |f TEST_S|rdline..|
|00005ae0| 6d 61 69 6e 28 29 0a 7b | 0a 09 63 68 61 72 20 2a |main().{|..char *|
|00005af0| 73 20 3b 0a 09 69 6e 74 | 20 63 6f 75 6e 74 3d 30 |s ;..int| count=0|
|00005b00| 20 3b 0a 0a 09 77 68 69 | 6c 65 20 28 20 73 20 3d | ;...whi|le ( s =|
|00005b10| 20 53 72 64 6c 69 6e 65 | 28 20 30 20 29 20 29 0a | Srdline|( 0 ) ).|
|00005b20| 09 7b 0a 09 09 70 75 74 | 73 28 20 73 20 29 20 3b |.{...put|s( s ) ;|
|00005b30| 0a 09 09 63 6f 75 6e 74 | 2b 2b 20 3b 0a 09 7d 0a |...count|++ ;..}.|
|00005b40| 09 53 64 6f 6e 65 28 20 | 30 20 29 20 3b 0a 09 65 |.Sdone( |0 ) ;..e|
|00005b50| 78 69 74 28 20 30 20 29 | 20 3b 0a 7d 0a 0a 23 65 |xit( 0 )| ;.}..#e|
|00005b60| 6e 64 69 66 20 20 2f 2a | 20 54 45 53 54 5f 53 72 |ndif /*| TEST_Sr|
|00005b70| 64 6c 69 6e 65 20 2a 2f | 0a 0a 2f 2a 2a 2a 2a 2a |dline */|../*****|
|00005b80| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005b90| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005ba0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005bb0| 2a 2a 2a 2a 2a 2a 2a 2a | 2f 0a 0a 23 69 66 64 65 |********|/..#ifde|
|00005bc0| 66 20 54 45 53 54 5f 53 | 70 75 74 63 68 61 72 0a |f TEST_S|putchar.|
|00005bd0| 0a 6d 61 69 6e 28 29 0a | 7b 0a 09 69 6e 74 20 63 |.main().|{..int c|
|00005be0| 20 3b 0a 0a 09 77 68 69 | 6c 65 20 28 20 28 20 63 | ;...whi|le ( ( c|
|00005bf0| 20 3d 20 67 65 74 63 68 | 61 72 28 29 20 29 20 21 | = getch|ar() ) !|
|00005c00| 3d 20 45 4f 46 20 29 0a | 09 09 69 66 20 28 20 53 |= EOF ).|..if ( S|
|00005c10| 70 75 74 63 68 61 72 28 | 20 31 2c 20 63 20 29 20 |putchar(| 1, c ) |
|00005c20| 21 3d 20 63 20 29 0a 09 | 09 09 65 78 69 74 28 20 |!= c )..|..exit( |
|00005c30| 31 20 29 20 3b 0a 09 65 | 78 69 74 28 20 30 20 29 |1 ) ;..e|xit( 0 )|
|00005c40| 20 3b 0a 7d 0a 0a 23 65 | 6e 64 69 66 20 2f 2a 20 | ;.}..#e|ndif /* |
|00005c50| 54 45 53 54 5f 53 70 75 | 74 63 68 61 72 20 2a 2f |TEST_Spu|tchar */|
|00005c60| 0a 0a 2f 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |../*****|********|
|00005c70| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005c80| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005c90| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005ca0| 2f 0a 0a 23 69 66 64 65 | 66 20 54 45 53 54 5f 53 |/..#ifde|f TEST_S|
|00005cb0| 67 65 74 63 68 61 72 0a | 0a 6d 61 69 6e 28 29 0a |getchar.|.main().|
|00005cc0| 7b 0a 09 69 6e 74 20 63 | 20 3b 0a 0a 09 77 68 69 |{..int c| ;...whi|
|00005cd0| 6c 65 20 28 20 28 20 63 | 20 3d 20 53 67 65 74 63 |le ( ( c| = Sgetc|
|00005ce0| 68 61 72 28 20 30 20 29 | 20 29 20 21 3d 20 53 49 |har( 0 )| ) != SI|
|00005cf0| 4f 5f 45 4f 46 20 29 0a | 09 09 70 75 74 63 68 61 |O_EOF ).|..putcha|
|00005d00| 72 28 20 63 20 29 20 3b | 0a 09 65 78 69 74 28 20 |r( c ) ;|..exit( |
|00005d10| 30 20 29 20 3b 0a 7d 0a | 0a 23 65 6e 64 69 66 09 |0 ) ;.}.|.#endif.|
|00005d20| 2f 2a 20 54 45 53 54 5f | 53 67 65 74 63 68 61 72 |/* TEST_|Sgetchar|
|00005d30| 20 2a 2f 0a 0a 2f 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a | */../**|********|
|00005d40| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005d50| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005d60| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005d70| 2a 2a 2a 2f 0a 0a 23 69 | 66 64 65 66 20 54 45 53 |***/..#i|fdef TES|
|00005d80| 54 5f 53 70 75 74 63 0a | 0a 6d 61 69 6e 28 29 0a |T_Sputc.|.main().|
|00005d90| 7b 0a 20 20 20 69 6e 74 | 20 63 20 3b 0a 20 0a 20 |{. int| c ;. . |
|00005da0| 20 20 77 68 69 6c 65 20 | 28 20 28 20 63 20 3d 20 | while |( ( c = |
|00005db0| 67 65 74 63 68 61 72 28 | 29 20 29 20 21 3d 20 45 |getchar(|) ) != E|
|00005dc0| 4f 46 20 29 0a 20 20 20 | 20 20 20 69 66 20 28 20 |OF ). | if ( |
|00005dd0| 53 70 75 74 63 28 20 31 | 2c 20 63 20 29 20 21 3d |Sputc( 1|, c ) !=|
|00005de0| 20 63 20 29 0a 20 20 20 | 20 20 20 20 20 20 65 78 | c ). | ex|
|00005df0| 69 74 28 20 31 20 29 20 | 3b 0a 20 20 20 65 78 69 |it( 1 ) |;. exi|
|00005e00| 74 28 20 30 20 29 20 3b | 0a 7d 0a 0a 23 65 6e 64 |t( 0 ) ;|.}..#end|
|00005e10| 69 66 20 2f 2a 20 54 45 | 53 54 5f 53 70 75 74 63 |if /* TE|ST_Sputc|
|00005e20| 20 2a 2f 0a 0a 2f 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a | */../**|********|
|00005e30| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005e40| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005e50| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005e60| 2a 2a 2a 2f 0a 0a 23 69 | 66 64 65 66 20 54 45 53 |***/..#i|fdef TES|
|00005e70| 54 5f 53 67 65 74 63 0a | 0a 6d 61 69 6e 28 29 0a |T_Sgetc.|.main().|
|00005e80| 7b 0a 20 20 20 69 6e 74 | 20 63 20 3b 0a 0a 20 20 |{. int| c ;.. |
|00005e90| 20 77 68 69 6c 65 20 28 | 20 28 20 63 20 3d 20 53 | while (| ( c = S|
|00005ea0| 67 65 74 63 28 20 30 20 | 29 20 29 20 21 3d 20 53 |getc( 0 |) ) != S|
|00005eb0| 49 4f 5f 45 4f 46 20 29 | 0a 20 20 20 20 20 20 70 |IO_EOF )|. p|
|00005ec0| 75 74 63 68 61 72 28 20 | 63 20 29 20 3b 0a 20 20 |utchar( |c ) ;. |
|00005ed0| 20 65 78 69 74 28 20 30 | 20 29 20 3b 0a 7d 0a 0a | exit( 0| ) ;.}..|
|00005ee0| 23 65 6e 64 69 66 20 2f | 2a 20 54 45 53 54 5f 53 |#endif /|* TEST_S|
|00005ef0| 67 65 74 63 20 2a 2f 0a | 0a 2f 2a 2a 2a 2a 2a 2a |getc */.|./******|
|00005f00| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005f10| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005f20| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005f30| 2a 2a 2a 2a 2a 2a 2a 2f | 0a 0a 23 69 66 64 65 66 |*******/|..#ifdef|
|00005f40| 20 54 45 53 54 5f 53 66 | 65 74 63 68 0a 0a 6d 61 | TEST_Sf|etch..ma|
|00005f50| 69 6e 28 29 0a 7b 0a 09 | 63 68 61 72 20 2a 73 20 |in().{..|char *s |
|00005f60| 3b 0a 09 69 6e 74 20 6c | 65 6e 20 3b 0a 0a 09 77 |;..int l|en ;...w|
|00005f70| 68 69 6c 65 20 28 20 73 | 20 3d 20 53 66 65 74 63 |hile ( s| = Sfetc|
|00005f80| 68 28 20 30 2c 20 26 6c | 65 6e 20 29 20 29 0a 09 |h( 0, &l|en ) )..|
|00005f90| 09 66 77 72 69 74 65 28 | 20 73 2c 20 31 2c 20 6c |.fwrite(| s, 1, l|
|00005fa0| 65 6e 2c 20 73 74 64 6f | 75 74 20 29 20 3b 0a 09 |en, stdo|ut ) ;..|
|00005fb0| 65 78 69 74 28 20 30 20 | 29 20 3b 0a 7d 0a 0a 23 |exit( 0 |) ;.}..#|
|00005fc0| 65 6e 64 69 66 20 2f 2a | 20 54 45 53 54 5f 53 66 |endif /*| TEST_Sf|
|00005fd0| 65 74 63 68 20 2a 2f 0a | 0a 2f 2a 2a 2a 2a 2a 2a |etch */.|./******|
|00005fe0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005ff0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00006000| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00006010| 2a 2a 2a 2a 2a 2a 2a 2f | 0a 0a 23 69 66 64 65 66 |*******/|..#ifdef|
|00006020| 20 54 45 53 54 5f 53 66 | 6c 75 73 68 0a 0a 23 64 | TEST_Sf|lush..#d|
|00006030| 65 66 69 6e 65 20 4d 41 | 58 5f 43 4f 55 4e 54 09 |efine MA|X_COUNT.|
|00006040| 09 31 30 30 0a 0a 6d 61 | 69 6e 28 29 0a 7b 0a 09 |.100..ma|in().{..|
|00006050| 69 6e 74 20 63 20 3b 0a | 09 69 6e 74 20 65 72 72 |int c ;.|.int err|
|00006060| 76 61 6c 20 3b 0a 09 69 | 6e 74 20 63 6f 75 6e 74 |val ;..i|nt count|
|00006070| 20 3d 20 30 20 3b 0a 09 | 69 6e 74 20 6d 61 78 5f | = 0 ;..|int max_|
|00006080| 63 6f 75 6e 74 20 3d 20 | 72 61 6e 64 6f 6d 28 29 |count = |random()|
|00006090| 20 25 20 4d 41 58 5f 43 | 4f 55 4e 54 20 2b 20 31 | % MAX_C|OUNT + 1|
|000060a0| 20 3b 0a 0a 09 77 68 69 | 6c 65 20 28 20 28 20 63 | ;...whi|le ( ( c|
|000060b0| 20 3d 20 67 65 74 63 68 | 61 72 28 29 20 29 20 21 | = getch|ar() ) !|
|000060c0| 3d 20 45 4f 46 20 29 0a | 09 09 69 66 20 28 20 53 |= EOF ).|..if ( S|
|000060d0| 70 75 74 63 68 61 72 28 | 20 31 2c 20 63 20 29 20 |putchar(| 1, c ) |
|000060e0| 21 3d 20 63 20 29 0a 09 | 09 09 65 78 69 74 28 20 |!= c )..|..exit( |
|000060f0| 65 72 72 76 61 6c 20 29 | 20 3b 0a 09 09 65 6c 73 |errval )| ;...els|
|00006100| 65 0a 09 09 7b 0a 09 09 | 09 63 6f 75 6e 74 2b 2b |e...{...|.count++|
|00006110| 20 3b 0a 09 09 09 69 66 | 20 28 20 63 6f 75 6e 74 | ;....if| ( count|
|00006120| 20 3e 3d 20 6d 61 78 5f | 63 6f 75 6e 74 20 29 0a | >= max_|count ).|
|00006130| 09 09 09 7b 0a 09 09 09 | 09 65 72 72 76 61 6c 20 |...{....|.errval |
|00006140| 3d 20 53 66 6c 75 73 68 | 28 20 31 20 29 20 3b 0a |= Sflush|( 1 ) ;.|
|00006150| 09 09 09 09 69 66 20 28 | 20 65 72 72 76 61 6c 20 |....if (| errval |
|00006160| 21 3d 20 30 20 29 0a 09 | 09 09 09 09 65 78 69 74 |!= 0 )..|....exit|
|00006170| 28 20 31 20 29 20 3b 0a | 09 09 09 09 6d 61 78 5f |( 1 ) ;.|....max_|
|00006180| 63 6f 75 6e 74 20 3d 20 | 72 61 6e 64 6f 6d 28 29 |count = |random()|
|00006190| 20 25 20 4d 41 58 5f 43 | 4f 55 4e 54 20 2b 20 31 | % MAX_C|OUNT + 1|
|000061a0| 20 3b 0a 09 09 09 09 63 | 6f 75 6e 74 20 3d 20 30 | ;.....c|ount = 0|
|000061b0| 20 3b 0a 09 09 09 7d 0a | 09 09 7d 0a 09 65 78 69 | ;....}.|..}..exi|
|000061c0| 74 28 20 30 20 29 20 3b | 0a 7d 0a 0a 23 65 6e 64 |t( 0 ) ;|.}..#end|
|000061d0| 69 66 20 2f 2a 20 54 45 | 53 54 5f 53 66 6c 75 73 |if /* TE|ST_Sflus|
|000061e0| 68 20 2a 2f 0a 0a 2f 2a | 2a 2a 2a 2a 2a 2a 2a 2a |h */../*|********|
|000061f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00006200| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00006210| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00006220| 2a 2a 2a 2a 2f 0a 0a 23 | 69 66 64 65 66 20 54 45 |****/..#|ifdef TE|
|00006230| 53 54 5f 53 75 6e 64 6f | 0a 0a 6d 61 69 6e 28 29 |ST_Sundo|..main()|
|00006240| 0a 7b 0a 09 69 6e 74 20 | 63 20 3b 0a 09 63 68 61 |.{..int |c ;..cha|
|00006250| 72 20 2a 73 20 3b 0a 09 | 69 6e 74 20 65 72 72 76 |r *s ;..|int errv|
|00006260| 61 6c 20 3b 0a 0a 09 66 | 6f 72 20 28 20 3b 3b 20 |al ;...f|or ( ;; |
|00006270| 29 0a 09 7b 0a 09 09 69 | 66 20 28 20 72 61 6e 64 |)..{...i|f ( rand|
|00006280| 6f 6d 28 29 20 25 20 31 | 20 29 0a 09 09 7b 0a 09 |om() % 1| )...{..|
|00006290| 09 09 73 20 3d 20 53 72 | 64 6c 69 6e 65 28 20 30 |..s = Sr|dline( 0|
|000062a0| 20 29 20 3b 0a 09 09 09 | 69 66 20 28 20 73 20 3d | ) ;....|if ( s =|
|000062b0| 3d 20 4e 55 4c 4c 20 29 | 0a 09 09 09 09 62 72 65 |= NULL )|.....bre|
|000062c0| 61 6b 20 3b 0a 09 09 09 | 69 66 20 28 20 72 61 6e |ak ;....|if ( ran|
|000062d0| 64 6f 6d 28 29 20 25 20 | 31 36 20 3c 20 35 20 29 |dom() % |16 < 5 )|
|000062e0| 0a 09 09 09 7b 0a 09 09 | 09 09 65 72 72 76 61 6c |....{...|..errval|
|000062f0| 20 3d 20 53 75 6e 64 6f | 28 20 30 2c 20 53 49 4f | = Sundo|( 0, SIO|
|00006300| 5f 55 4e 44 4f 5f 4c 49 | 4e 45 20 29 20 3b 0a 09 |_UNDO_LI|NE ) ;..|
|00006310| 09 09 09 69 66 20 28 20 | 65 72 72 76 61 6c 20 3d |...if ( |errval =|
|00006320| 3d 20 53 49 4f 5f 45 52 | 52 20 29 0a 09 09 09 09 |= SIO_ER|R ).....|
|00006330| 09 65 78 69 74 28 20 31 | 20 29 20 3b 0a 09 09 09 |.exit( 1| ) ;....|
|00006340| 7d 0a 09 09 09 65 6c 73 | 65 0a 09 09 09 09 70 75 |}....els|e.....pu|
|00006350| 74 73 28 20 73 20 29 20 | 3b 0a 09 09 7d 0a 09 09 |ts( s ) |;...}...|
|00006360| 65 6c 73 65 0a 09 09 7b | 0a 09 09 09 63 20 3d 20 |else...{|....c = |
|00006370| 53 67 65 74 63 68 61 72 | 28 20 30 20 29 20 3b 0a |Sgetchar|( 0 ) ;.|
|00006380| 09 09 09 69 66 20 28 20 | 63 20 3d 3d 20 53 49 4f |...if ( |c == SIO|
|00006390| 5f 45 4f 46 20 29 0a 09 | 09 09 09 62 72 65 61 6b |_EOF )..|...break|
|000063a0| 20 3b 0a 09 09 09 69 66 | 20 28 20 72 61 6e 64 6f | ;....if| ( rando|
|000063b0| 6d 28 29 20 25 20 31 36 | 20 3c 20 35 20 29 0a 09 |m() % 16| < 5 )..|
|000063c0| 09 09 7b 0a 09 09 09 09 | 65 72 72 76 61 6c 20 3d |..{.....|errval =|
|000063d0| 20 53 75 6e 64 6f 28 20 | 30 2c 20 53 49 4f 5f 55 | Sundo( |0, SIO_U|
|000063e0| 4e 44 4f 5f 43 48 41 52 | 20 29 20 3b 0a 09 09 09 |NDO_CHAR| ) ;....|
|000063f0| 09 69 66 20 28 20 65 72 | 72 76 61 6c 20 3d 3d 20 |.if ( er|rval == |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.